Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
This article applies to: ✔️ .NET 6 SDK and later versions
Name
dotnet tool uninstall - Uninstalls the specified .NET tool from your machine.
Synopsis
dotnet tool uninstall <PACKAGE_NAME> -g|--global
dotnet tool uninstall <PACKAGE_NAME> --tool-path <PATH> [--tool-manifest <PATH>]
dotnet tool uninstall <PACKAGE_NAME>
dotnet tool uninstall -h|--help
Description
The dotnet tool uninstall command provides a way for you to uninstall .NET tools from your machine. To use the command, you specify one of the following options:
- To uninstall a global tool that was installed in the default location, use the
--globaloption. - To uninstall a global tool that was installed in a custom location, use the
--tool-pathoption. - To uninstall a local tool, omit the
--globaland--tool-pathoptions.
Arguments
PACKAGE_NAMEName/ID of the NuGet package that contains the .NET tool to uninstall. You can find the package name using the dotnet tool list command.
Options
-g|--globalSpecifies that the tool to be removed is from a user-wide installation. Can't be combined with the
--tool-pathoption. Omitting both--globaland--tool-pathspecifies that the tool to be removed is a local tool.-
-?|-h|--helpPrints out a description of how to use the command.
--tool-path <PATH>Specifies the location where to uninstall the tool. PATH can be absolute or relative. Can't be combined with the
--globaloption. Omitting both--globaland--tool-pathspecifies that the tool to be removed is a local tool.--tool-manifest <PATH>Specifies the manifest file that the tool is to be removed from. PATH can be absolute or relative. Can't be combined with the
--globaloption.
Examples
dotnet tool uninstall -g dotnetsayUninstalls the dotnetsay global tool.
dotnet tool uninstall dotnetsay --tool-path c:\global-toolsUninstalls the dotnetsay global tool from a specific Windows directory.
dotnet tool uninstall dotnetsay --tool-path ~/binUninstalls the dotnetsay global tool from a specific Linux/macOS directory.
dotnet tool uninstall dotnetsayUninstalls the dotnetsay local tool from the current directory.