diff --git a/docs/core/tools/dotnet-tool-exec.md b/docs/core/tools/dotnet-tool-exec.md index afc1a4e36eeda..67de71401474a 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] [--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-tool-source.md)] + - [!INCLUDE [verbosity](../../../includes/cli-verbosity-normal.md)] - [!INCLUDE [help](../../../includes/cli-help.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.