From c5daaecc5a5ce59c21d3aec772fe9b7488e72178 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 23:15:34 +0000 Subject: [PATCH 1/5] Initial plan From e42f1be5380cf79f8d3f4c9b5f966d1aa8be45e8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 4 Dec 2025 23:21:20 +0000 Subject: [PATCH 2/5] Add --source option to dotnet tool exec documentation Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com> --- docs/core/tools/dotnet-tool-exec.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/core/tools/dotnet-tool-exec.md b/docs/core/tools/dotnet-tool-exec.md index afc1a4e36eeda..1fa5a0f33ff5f 100644 --- a/docs/core/tools/dotnet-tool-exec.md +++ b/docs/core/tools/dotnet-tool-exec.md @@ -18,7 +18,7 @@ dotnet tool exec [@] [--allow-roll-forward] [-a|--arch ] [--add-source ] [--configfile ] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-http-cache] [--prerelease] + [--no-http-cache] [--prerelease] [-s|--source ] [-v|--verbosity ] [--] [...] @@ -81,6 +81,8 @@ This command also exists in two other forms for easier use Allows prerelease packages to be selected when resolving the version to install. +- [!INCLUDE [source](../../../includes/cli-source.md)] + - [!INCLUDE [verbosity](../../../includes/cli-verbosity-normal.md)] - [!INCLUDE [help](../../../includes/cli-help.md)] From 61d51e558d2f0d1ee8fa70a0d9c3865bf2a882af Mon Sep 17 00:00:00 2001 From: "Meaghan Osagie (Lewis)" Date: Fri, 5 Dec 2025 09:23:19 -0800 Subject: [PATCH 3/5] Document --source option in dotnet tool exec Added description for the --source option in dotnet tool exec. --- docs/core/tools/dotnet-tool-exec.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/core/tools/dotnet-tool-exec.md b/docs/core/tools/dotnet-tool-exec.md index 1fa5a0f33ff5f..e25eefc38ec39 100644 --- a/docs/core/tools/dotnet-tool-exec.md +++ b/docs/core/tools/dotnet-tool-exec.md @@ -18,7 +18,7 @@ dotnet tool exec [@] [--allow-roll-forward] [-a|--arch ] [--add-source ] [--configfile ] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-http-cache] [--prerelease] [-s|--source ] + [--no-http-cache] [--prerelease] [--source ] [-v|--verbosity ] [--] [...] @@ -81,7 +81,9 @@ This command also exists in two other forms for easier use Allows prerelease packages to be selected when resolving the version to install. -- [!INCLUDE [source](../../../includes/cli-source.md)] +- **`--source `** + + Replaces all NuGet package sources to use during installation with the provided source. - [!INCLUDE [verbosity](../../../includes/cli-verbosity-normal.md)] From 846cf25b32956c7961e0148712ae33074342c117 Mon Sep 17 00:00:00 2001 From: "Meaghan Osagie (Lewis)" Date: Fri, 5 Dec 2025 09:51:07 -0800 Subject: [PATCH 4/5] Update docs/core/tools/dotnet-tool-exec.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/core/tools/dotnet-tool-exec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/tools/dotnet-tool-exec.md b/docs/core/tools/dotnet-tool-exec.md index e25eefc38ec39..955167184a325 100644 --- a/docs/core/tools/dotnet-tool-exec.md +++ b/docs/core/tools/dotnet-tool-exec.md @@ -83,7 +83,7 @@ This command also exists in two other forms for easier use - **`--source `** - Replaces all NuGet package sources to use during installation with the provided source. + Specifies the source for NuGet packages. This source replaces all NuGet package sources. - [!INCLUDE [verbosity](../../../includes/cli-verbosity-normal.md)] From 3a51c6a5963dfcb88adae2022cf85769822f0823 Mon Sep 17 00:00:00 2001 From: Meaghan Osagie Date: Fri, 5 Dec 2025 10:05:44 -0800 Subject: [PATCH 5/5] add includes file and missing source option to commands --- docs/core/tools/dotnet-tool-exec.md | 4 +--- docs/core/tools/dotnet-tool-install.md | 10 ++++------ docs/core/tools/dotnet-tool-update.md | 8 +++++--- includes/cli-tool-source.md | 7 +++++++ 4 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 includes/cli-tool-source.md diff --git a/docs/core/tools/dotnet-tool-exec.md b/docs/core/tools/dotnet-tool-exec.md index 955167184a325..67de71401474a 100644 --- a/docs/core/tools/dotnet-tool-exec.md +++ b/docs/core/tools/dotnet-tool-exec.md @@ -81,9 +81,7 @@ This command also exists in two other forms for easier use Allows prerelease packages to be selected when resolving the version to install. -- **`--source `** - - Specifies the source for NuGet packages. This source replaces all NuGet package sources. +- [!INCLUDE [source](../../../includes/cli-tool-source.md)] - [!INCLUDE [verbosity](../../../includes/cli-verbosity-normal.md)] diff --git a/docs/core/tools/dotnet-tool-install.md b/docs/core/tools/dotnet-tool-install.md index f3cce105f2d41..9995f1ee9d111 100644 --- a/docs/core/tools/dotnet-tool-install.md +++ b/docs/core/tools/dotnet-tool-install.md @@ -18,7 +18,7 @@ dotnet tool install -g|--global [--allow-downgrade] [--allow-roll-forward] [-a|--arch ] [--add-source ] [--configfile ] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-cache] [--prerelease] + [--no-cache] [--prerelease] [--source ] [--tool-manifest ] [-v|--verbosity ] [--version ] @@ -26,7 +26,7 @@ dotnet tool install --tool-path [--allow-downgrade] [--allow-roll-forward] [-a|--arch ] [--add-source ] [--configfile ] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-cache] [--prerelease] + [--no-cache] [--prerelease] [--source ] [--tool-manifest ] [-v|--verbosity ] [--version ] @@ -35,7 +35,7 @@ dotnet tool install [--local] [--add-source ] [--configfile ] [--create-manifest-if-needed] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-cache] [--prerelease] + [--no-cache] [--prerelease] [--source ] [--tool-manifest ] [-v|--verbosity ] [--version ] @@ -141,9 +141,7 @@ For more information, see [Install a local tool](global-tools.md#install-a-local Specifies that the installation is user wide. Can't be combined with the `--tool-path` option. Omitting both `--global` and `--tool-path` specifies a local tool installation. -- **`--source `** - - Specifies the source for NuGet packages. This source replaces all NuGet package sources. +- [!INCLUDE [source](../../../includes/cli-tool-source.md)] - [!INCLUDE [help](../../../includes/cli-help.md)] diff --git a/docs/core/tools/dotnet-tool-update.md b/docs/core/tools/dotnet-tool-update.md index b1ea58e0f3dd8..3c92ef3f08ad7 100644 --- a/docs/core/tools/dotnet-tool-update.md +++ b/docs/core/tools/dotnet-tool-update.md @@ -19,7 +19,7 @@ dotnet tool update -g|--global [--configfile ] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-cache] [--prerelease] + [--no-cache] [--prerelease] [--source ] [-v|--verbosity ] [--version ] dotnet tool update --tool-path @@ -27,7 +27,7 @@ dotnet tool update --tool-path [--configfile ] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-cache] [--prerelease] + [--no-cache] [--prerelease] [--source ] [-v|--verbosity ] [--version ] dotnet tool update --local @@ -35,7 +35,7 @@ dotnet tool update --local [--configfile ] [--disable-parallel] [--framework ] [--ignore-failed-sources] [--interactive] - [--no-cache] [--prerelease] + [--no-cache] [--prerelease] [--source ] [--tool-manifest ] [-v|--verbosity ] [--version ] @@ -102,6 +102,8 @@ The `dotnet tool update` command provides a way for you to update .NET tools on Include prerelease versions. +- [!INCLUDE [source](../../../includes/cli-tool-source.md)] + - **`--tool-manifest `** Path to the manifest file. diff --git a/includes/cli-tool-source.md b/includes/cli-tool-source.md new file mode 100644 index 0000000000000..058b2ffd9560f --- /dev/null +++ b/includes/cli-tool-source.md @@ -0,0 +1,7 @@ +--- +ms.date: 12/05/2025 +ms.topic: include +--- +**`--source `** + +Specifies the source for NuGet packages. This source replaces all NuGet package sources.