Skip to content

Commit

Permalink
Merge pull request #40183 from dotnet/main
Browse files Browse the repository at this point in the history
  • Loading branch information
BillWagner authored Mar 22, 2024
2 parents 5c96772 + e423f74 commit a51aa85
Show file tree
Hide file tree
Showing 13 changed files with 213 additions and 29 deletions.
4 changes: 2 additions & 2 deletions docs/azure/includes/dotnet-all.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
| Monitor Ingestion | NuGet [1.1.1](https://www.nuget.org/packages/Azure.Monitor.Ingestion/1.1.1) | [docs](/dotnet/api/overview/azure/Monitor.Ingestion-readme) | GitHub [1.1.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.Ingestion_1.1.1/sdk/monitor/Azure.Monitor.Ingestion/) |
| Monitor Query | NuGet [1.2.0](https://www.nuget.org/packages/Azure.Monitor.Query/1.2.0)<br>NuGet [1.3.0-beta.2](https://www.nuget.org/packages/Azure.Monitor.Query/1.3.0-beta.2) | [docs](/dotnet/api/overview/azure/Monitor.Query-readme) | GitHub [1.2.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.Query_1.2.0/sdk/monitor/Azure.Monitor.Query/)<br>GitHub [1.3.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.Query_1.3.0-beta.2/sdk/monitor/Azure.Monitor.Query/) |
| OpenAI Assistants | NuGet [1.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.OpenAI.Assistants/1.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.OpenAI.Assistants-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [1.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.OpenAI.Assistants_1.0.0-beta.3/sdk/openai/Azure.AI.OpenAI.Assistants/) |
| OpenAI Inference | NuGet [1.0.0-beta.14](https://www.nuget.org/packages/Azure.AI.OpenAI/1.0.0-beta.14) | [docs](/dotnet/api/overview/azure/AI.OpenAI-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [1.0.0-beta.14](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.OpenAI_1.0.0-beta.14/sdk/openai/Azure.AI.OpenAI/) |
| OpenAI Inference | NuGet [1.0.0-beta.15](https://www.nuget.org/packages/Azure.AI.OpenAI/1.0.0-beta.15) | [docs](/dotnet/api/overview/azure/AI.OpenAI-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [1.0.0-beta.15](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.OpenAI_1.0.0-beta.15/sdk/openai/Azure.AI.OpenAI/) |
| OpenTelemetry AspNetCore | NuGet [1.1.0](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.AspNetCore/1.1.0)<br>NuGet [1.2.0-beta.2](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.AspNetCore/1.2.0-beta.2) | [docs](/dotnet/api/overview/azure/Monitor.OpenTelemetry.AspNetCore-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.AspNetCore_1.1.0/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/)<br>GitHub [1.2.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.AspNetCore_1.2.0-beta.2/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/) |
| OpenTelemetry Exporter | NuGet [1.2.0](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.Exporter/1.2.0)<br>NuGet [1.3.0-beta.1](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.Exporter/1.3.0-beta.1) | [docs](/dotnet/api/overview/azure/Monitor.OpenTelemetry.Exporter-readme) | GitHub [1.2.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.Exporter_1.2.0/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/)<br>GitHub [1.3.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.Exporter_1.3.0-beta.1/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/) |
| Personalizer | NuGet [2.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Personalizer/2.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Personalizer-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [2.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Personalizer_2.0.0-beta.2/sdk/personalizer/Azure.AI.Personalizer/) |
Expand Down Expand Up @@ -291,7 +291,7 @@
| Azure.Communication.Administration | NuGet [1.0.0-beta.3](https://www.nuget.org/packages/Azure.Communication.Administration/1.0.0-beta.3) | | |
| Azure.Communication.CallingServer | NuGet [1.0.0-beta.3](https://www.nuget.org/packages/Azure.Communication.CallingServer/1.0.0-beta.3) | | |
| Azure.Core.Expressions.DataFactory | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Core.Expressions.DataFactory/1.0.0) | | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Core.Expressions.DataFactory_1.0.0/sdk/core/Azure.Core.Expressions.DataFactory/) |
| Communication Calling Windows Client | NuGet [1.5.0](https://www.nuget.org/packages/Azure.Communication.Calling.WindowsClient/1.5.0)<br>NuGet [1.5.0-beta.3](https://www.nuget.org/packages/Azure.Communication.Calling.WindowsClient/1.5.0-beta.3) | | |
| Communication Calling Windows Client | NuGet [1.5.0](https://www.nuget.org/packages/Azure.Communication.Calling.WindowsClient/1.5.0) | | |
| Unknown Display Name | NuGet [12.0.0-beta.1](https://www.nuget.org/packages/Azure.Storage.DataMovement.Files.Shares/12.0.0-beta.1) | | |
| Unknown Display Name | NuGet [1.0.2](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore.Analyzers/1.0.2) | | |
| Unknown Display Name | NuGet [4.0.2945](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore/4.0.2945) | | |
Expand Down
2 changes: 1 addition & 1 deletion docs/azure/includes/dotnet-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
| Monitor Ingestion | NuGet [1.1.1](https://www.nuget.org/packages/Azure.Monitor.Ingestion/1.1.1) | [docs](/dotnet/api/overview/azure/Monitor.Ingestion-readme) | GitHub [1.1.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.Ingestion_1.1.1/sdk/monitor/Azure.Monitor.Ingestion/) |
| Monitor Query | NuGet [1.2.0](https://www.nuget.org/packages/Azure.Monitor.Query/1.2.0)<br>NuGet [1.3.0-beta.2](https://www.nuget.org/packages/Azure.Monitor.Query/1.3.0-beta.2) | [docs](/dotnet/api/overview/azure/Monitor.Query-readme) | GitHub [1.2.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.Query_1.2.0/sdk/monitor/Azure.Monitor.Query/)<br>GitHub [1.3.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.Query_1.3.0-beta.2/sdk/monitor/Azure.Monitor.Query/) |
| OpenAI Assistants | NuGet [1.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.OpenAI.Assistants/1.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.OpenAI.Assistants-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [1.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.OpenAI.Assistants_1.0.0-beta.3/sdk/openai/Azure.AI.OpenAI.Assistants/) |
| OpenAI Inference | NuGet [1.0.0-beta.14](https://www.nuget.org/packages/Azure.AI.OpenAI/1.0.0-beta.14) | [docs](/dotnet/api/overview/azure/AI.OpenAI-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [1.0.0-beta.14](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.OpenAI_1.0.0-beta.14/sdk/openai/Azure.AI.OpenAI/) |
| OpenAI Inference | NuGet [1.0.0-beta.15](https://www.nuget.org/packages/Azure.AI.OpenAI/1.0.0-beta.15) | [docs](/dotnet/api/overview/azure/AI.OpenAI-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [1.0.0-beta.15](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.OpenAI_1.0.0-beta.15/sdk/openai/Azure.AI.OpenAI/) |
| OpenTelemetry AspNetCore | NuGet [1.1.0](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.AspNetCore/1.1.0)<br>NuGet [1.2.0-beta.2](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.AspNetCore/1.2.0-beta.2) | [docs](/dotnet/api/overview/azure/Monitor.OpenTelemetry.AspNetCore-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.AspNetCore_1.1.0/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/)<br>GitHub [1.2.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.AspNetCore_1.2.0-beta.2/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/) |
| OpenTelemetry Exporter | NuGet [1.2.0](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.Exporter/1.2.0)<br>NuGet [1.3.0-beta.1](https://www.nuget.org/packages/Azure.Monitor.OpenTelemetry.Exporter/1.3.0-beta.1) | [docs](/dotnet/api/overview/azure/Monitor.OpenTelemetry.Exporter-readme) | GitHub [1.2.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.Exporter_1.2.0/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/)<br>GitHub [1.3.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Monitor.OpenTelemetry.Exporter_1.3.0-beta.1/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/) |
| Personalizer | NuGet [2.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Personalizer/2.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Personalizer-readme?view=azure-dotnet-preview&amp;preserve-view=true) | GitHub [2.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Personalizer_2.0.0-beta.2/sdk/personalizer/Azure.AI.Personalizer/) |
Expand Down
7 changes: 5 additions & 2 deletions docs/core/additional-tools/uninstall-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ On Windows, the tool can only uninstall SDKs and runtimes that were installed us

On macOS, the tool can only uninstall SDKs and runtimes located in the */usr/local/share/dotnet* folder.

Because of these limitations, the tool might not be able to uninstall all of the .NET SDKs and runtimes on your machine. You can use the `dotnet --info` command to find all of the .NET SDKs and runtimes installed, including those SDKs and runtimes that the tool can't remove. The `dotnet-core-uninstall list` command displays which SDKs can be uninstalled with the tool. Versions 1.2 and later can uninstall SDKs and runtimes with version 5.0 or earlier, and previous versions of the tool can uninstall 3.1 and earlier.
Because of these limitations, the tool might not be able to uninstall all of the .NET SDKs and runtimes on your machine. You can use the `dotnet --info` command to find all of the .NET SDKs and runtimes installed, including those SDKs and runtimes that the tool can't remove. The `dotnet-core-uninstall list` command displays which SDKs can be uninstalled with the tool.

> [!NOTE]
> Currently, the .NET Uninstall Tool doesn't support .NET 8+. For more information about the release schedule of the tool, see [GitHub - dotnet-uninstall-tool Roadmap](https://github.com/dotnet/cli-lab/issues/279).
## Install the tool

Expand Down Expand Up @@ -53,7 +56,7 @@ For more information, see [`dry-run` and `whatif` commands](#dry-run-and-whatif-

### Step 3 - Uninstall .NET SDKs and Runtimes

`dotnet-core-uninstall remove` uninstalls .NET SDKs and Runtimes that are specified by a collection of options. Versions 1.2 and later can uninstall SDKs and runtimes with version 5.0 or earlier, and previous versions of the tool can uninstall 3.1 and earlier.
`dotnet-core-uninstall remove` uninstalls .NET SDKs and Runtimes that are specified by a collection of options.

Since this tool has a destructive behavior, it's **highly** recommended that you do a dry run before running the remove command. The dry run will show you what .NET SDKs and runtimes will be removed when you use the `remove` command. Refer to [Should I remove a version?](../install/remove-runtime-sdk-versions.md#should-i-remove-a-version) to learn which SDKs and runtimes are safe to remove.

Expand Down
5 changes: 4 additions & 1 deletion docs/core/install/remove-runtime-sdk-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ If you installed .NET using a package manager, use that same package manager to

In almost all cases, the command to remove a package is `remove`.

The package name for the .NET SDK installation for most package managers is `dotnet-sdk`, followed by the version number. Starting with the version 2.1.300 of the .NET SDK and version `2.1` of the runtime, only the major and minor version numbers are necessary: for example, the .NET SDK version 2.1.300 can be referenced as the package `dotnet-sdk-2.1`. Prior versions require the entire version string: for example, `dotnet-sdk-2.1.200` would be required for version 2.1.200 of the .NET SDK.
The package name for the .NET SDK installation for most package managers is `dotnet-sdk`, followed by the version number. Only the major and minor version numbers are necessary: for example, the .NET SDK version 8.0.200 can be referenced as the package `dotnet-sdk-8.0`.

For machines that have installed only the runtime, and not the SDK, the package name is `dotnet-runtime-<version>` for the .NET runtime, and `aspnetcore-runtime-<version>` for the entire runtime stack.

Expand Down Expand Up @@ -144,6 +144,9 @@ sudo rm -rf /usr/local/share/dotnet/sdk/6.0.406

The [.NET Uninstall Tool](../additional-tools/uninstall-tool.md) (`dotnet-core-uninstall`) lets you remove .NET SDKs and runtimes from a system. A collection of options is available to specify which versions should be uninstalled.

> [!NOTE]
> Currently, the .NET Uninstall Tool doesn't support .NET 8+. For more information about the release schedule of the tool, see [GitHub - dotnet-uninstall-tool Roadmap](https://github.com/dotnet/cli-lab/issues/279).
::: zone pivot="os-windows"

## Visual Studio dependency on .NET SDK versions
Expand Down
176 changes: 176 additions & 0 deletions docs/core/tools/dotnet-package-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
---
title: dotnet package search command
description: Searches a given source using the query string provided. If no sources are specified, all sources defined in the NuGet.Config file are used.
author: Nigusu-Allehu
ms.date: 10/26/2023
---
# dotnet package search

**This article applies to:** ✔️ .NET 8.0.2xx SDK and later versions

## Name

`dotnet package search` - Searches for a NuGet package.

## Synopsis

```dotnetcli
dotnet package search <SEARCH TERM> [--configfile <FILE>] [--exact-match] [--format <FORMAT OPTION>]
[--interactive] [--prerelease] [--skip <NUMBER>] [--source <SOURCE>] [--take <NUMBER>]
[--verbosity <VERBOSITY VALUE>]
dotnet package search -h|--help
```

## Description

The `dotnet package search` command searches for a NuGet package.

## Arguments

- **`search terms`**

Specifies the search term to filter results. Use this argument to search for packages matching the provided query. Example: `dotnet package search json`.

## Options

- **`--configfile`**

The NuGet configuration file. If specified, only the settings from this file will be used. If not
specified, the hierarchy of configuration files from the current directory will be used. For more
information, see [Common NuGet configurations](/nuget/consume-packages/configuring-nuget-behavior).

- **`--exact-match`**

This option narrows the search to only include packages whose IDs exactly match the specified search term, effectively filtering out any partial matches. It provides a concise list of all available versions for the identified package. Causes `--take` and `--skip`
options to be ignored. Utilize this option to display all available versions of a specified package.

- **`--format`**

The format options are `table` and `json`. The default is `table`.

- **`--interactive`**

Allows the command to stop and wait for user input or action (for example to complete authentication).

- **`--prerelease`**

Allow prerelease packages to be shown.

- **`--skip`**

The number of results to skip, for pagination. The default value is 0.

- **`--source <SOURCE>`**

The package source to search. You can pass multiple --source options to search multiple package sources.

- **`--take`**

The number of results to return. The default value is 20.

- **`--verbosity`**

Display this amount of details in the output: `normal`, `minimal`, or `detailed`. The default is `normal`.

[!INCLUDE [help](../../../includes/cli-help.md)]

## Examples

- Search NuGet.org for packages that match the search term "Newtonsoft.Json," and render the output as a table with up to 20 packages:

```dotnetcli
dotnet package search Newtonsoft.Json --source https://api.nuget.org/v3/index.json
```

```output
Source: https://api.nuget.org/v3/index.json
| Package ID | Latest Version | Owners | Downloads |
|---------------------------------------------|----------------|--------|-----------------|
| Newtonsoft.Json | 13.0.3 | | 3,829,822,911 |
|---------------------------------------------|----------------|--------|-----------------|
| Newtonsoft.Json.Bson | 1.0.2 | | 554,641,545 |
|---------------------------------------------|----------------|--------|-----------------|
| Newtonsoft.Json.Schema | 3.0.15 | | 39,648,430 |
|---------------------------------------------|----------------|--------|-----------------|
| Microsoft.AspNetCore.Mvc.NewtonsoftJson | 7.0.12 | | 317,067,823 |
|---------------------------------------------|----------------|--------|-----------------|
...
```

- Search NuGet.org for packages that match the search term "Newtonsoft.Json," and render the output as json.

```dotnetcli
dotnet package search Newtonsoft.Json --source https://api.nuget.org/v3/index.json --format json
```

```output
{
"version": 2,
"problems": [],
"searchResult": [
{
"sourceName": "https://api.nuget.org/v3/index.json",
"packages": [
{
"id": "Newtonsoft.Json",
"latestVersion": "13.0.3",
"totalDownloads": 4456137550,
"owners": "dotnetfoundation, jamesnk, newtonsoft"
},
{
"id": "Newtonsoft.Json.Bson",
"latestVersion": "1.0.2",
"totalDownloads": 655362732,
"owners": "dotnetfoundation, jamesnk, newtonsoft"
},
{
"id": "Newtonsoft.Json.Schema",
"latestVersion": "3.0.15",
"totalDownloads": 46062119,
"owners": "jamesnk, newtonsoft"
},
{
"id": "Microsoft.AspNetCore.Mvc.NewtonsoftJson",
"latestVersion": "8.0.3",
"totalDownloads": 372202749,
"owners": "aspnet, dotnetframework, Microsoft"
},
{
"id": "Newtonsoft.Json.Encryption",
"latestVersion": "2.2.0",
"totalDownloads": 113101,
"owners": "simoncropp"
}
]
}
]
}
```

- Search NuGet.org for packages using the search term "Newtonsoft.Json," show only two results, and skip the first packages in the search result:

```dotnetcli
dotnet package search Newtonsoft.Json --source https://api.nuget.org/v3/index.json --skip 1 --take 2
```

```output
Source: https://api.nuget.org/v3/index.json
| Package ID | Latest Version | Owners | Downloads |
|---------------------------------------------|----------------|--------|-----------------|
| Newtonsoft.Json.Bson | 1.0.2 | | 554,641,545 |
| Newtonsoft.Json.Schema | 3.0.15 | | 39,648,430 |
```

- Search for packages that exactly match "Newtonsoft.Json" and list all available versions of it, ignoring any packages that contain "Newtonsoft.Json" as a part of their name or description but don't match it exactly:

```dotnetcli
dotnet package search Newtonsoft.Json --source https://api.nuget.org/v3/index.json --exact-match
```

```output
Source: https://api.nuget.org/v3/index.json
| Package ID | Version | Owners | Downloads |
|---------------------------------------------|---------|--------|-----------------|
| Newtonsoft.Json | 13.0.3 | | 3,829,822,911 |
```
1 change: 1 addition & 0 deletions docs/core/tools/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following commands are installed by default:
- [`nuget verify`](dotnet-nuget-verify.md) (Available since .NET 5 SDK)
- [`nuget trust`](dotnet-nuget-trust.md) (Available since .NET 5 SDK)
- [`nuget sign`](dotnet-nuget-sign.md) (Available since .NET 6 SDK)
- [`package search`](dotnet-package-search.md) (Available since .NET 8.0.2xx SDK)

### Workload management commands

Expand Down
Loading

0 comments on commit a51aa85

Please sign in to comment.