dotnet tool uninstalldotnet tool uninstall
Эта статья относится к следующему. ✔️ SDK для .NET Core 2.1 и более поздних версийThis article applies to: ✔️ .NET Core 2.1 SDK and later versions
nameName
dotnet tool uninstall
— удаляет указанное средство .NET с компьютера.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>
dotnet tool uninstall <PACKAGE_NAME>
dotnet tool uninstall -h|--help
ОписаниеDescription
Команда dotnet tool uninstall
позволяет удалить средства .NET с компьютера.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:
- Чтобы удалить глобальное средство, установленное в расположении по умолчанию, используйте параметр
--global
.To uninstall a global tool that was installed in the default location, use the--global
option. - Чтобы удалить глобальное средство, установленное в пользовательском расположении, используйте параметр
--tool-path
.To uninstall a global tool that was installed in a custom location, use the--tool-path
option. - Чтобы удалить локальный инструмент, пропустите параметры
--global
и--tool-path
.To uninstall a local tool, omit the--global
and--tool-path
options.
Локальные средства доступны в пакете SDK для .NET Core, начиная с версии 3.0.Local tools are available starting with .NET Core SDK 3.0.
АргументыArguments
PACKAGE_NAME
Имя или идентификатор пакета NuGet, который содержит удаляемое средство .NET.Name/ID of the NuGet package that contains the .NET tool to uninstall. Найти имя пакета можно с помощью команды dotnet tool list.You can find the package name using the dotnet tool list command.
ПараметрыOptions
-g|--global
Указывает, что средство будет удалено из установки на уровне пользователя.Specifies that the tool to be removed is from a user-wide installation. Не может использоваться вместе с параметром
--tool-path
.Can't be combined with the--tool-path
option. Пропуск--global
и--tool-path
означает, что удаляемое средство является локальным.Omitting both--global
and--tool-path
specifies that the tool to be removed is a local tool.-h|--help
Выводит краткую справку по команде.Prints out a short help for the command.
--tool-path <PATH>
Указывает место, откуда будет удалено средство.Specifies the location where to uninstall the tool. Путь может быть абсолютным или относительным.PATH can be absolute or relative. Не может использоваться вместе с параметром
--global
.Can't be combined with the--global
option. Пропуск--global
и--tool-path
означает, что удаляемое средство является локальным.Omitting both--global
and--tool-path
specifies that the tool to be removed is a local tool.
ПримерыExamples
dotnet tool uninstall -g dotnetsay
Удаляет глобальное средство dotnetsay.Uninstalls the dotnetsay global tool.
dotnet tool uninstall dotnetsay --tool-path c:\global-tools
Удаляет глобальное средство dotnetsay из определенного каталога Windows.Uninstalls the dotnetsay global tool from a specific Windows directory.
dotnet tool uninstall dotnetsay --tool-path ~/bin
Удаляет глобальное средство dotnetsay из определенного каталога Linux/macOS.Uninstalls the dotnetsay global tool from a specific Linux/macOS directory.
dotnet tool uninstall dotnetsay
Удаляет локальный инструмент dotnetsay из текущего каталога.Uninstalls the dotnetsay local tool from the current directory.
См. такжеSee also
- Средства .NET.NET tools
- Учебник. Установка и использование глобального средства .NET с помощью интерфейса командной строки .NETTutorial: Install and use a .NET global tool using the .NET CLI
- Учебник. Установка и использование локального средства .NET с помощью интерфейса командной строки .NETTutorial: Install and use a .NET local tool using the .NET CLI