删除以前版本的.NET Core及其运行时文件。
dot-net-core-uninstaller的Python项目详细描述
卸载.NET Core sdk和运行时
Note: This can only be used in POSIX type operating systems.
卸载以前的.NET Core SDK及其运行时文件。
Note: You might need super user account to use this library.
滴注
pip install dot-net-core-uninstaller
用法
有几种使用方法:
使用命令行界面(推荐)
Usage: dotnetcore [OPTIONS] COMMAND [ARGS]...
Options:
--version Show version and exit.
--help Show this message and exit.
Commands:
list List all the version of .Net Core installed.
remove Remove the version of .Net Core.
要删除.NET Core sdk版本或运行时,请执行以下操作:
> dotnetcore remove 1.0.0
列出所有已安装的.NET核心库
> dotnetcore list
用作模块
fromdot_net_core_uninstallerimportUninstallerremove_dotnet=Uninstaller()remove_dotnet.delete("1.0.0")