dotnetup env clear 命令

Note

dotnetup 为公共预览版。 在正式发布之前,其功能和行为可能会更改。

Name

dotnetup env clear - 删除所有 dotnetup 环境布线。

Synopsis

dotnetup env clear [options]

说明

该命令删除托管PATH和更改,DOTNET_ROOT并存储none从中删除PATH的访问模式dotnetup。 它等效于:

dotnetup env set none --dotnetup-on-path false

它不会卸载.NET。

有关访问模式的详细信息,请参阅 dotnetup 环境配置。

选项

选项 说明
-s、--shell [<bash\|zsh\|fish\|pwsh>] 选择要更新的配置文件 shell。 如果省略,请检测当前 shell。
-?、-h、--help 显示命令帮助。

Example

dotnetup env clear --shell pwsh