Removing Old Version Of .NET - DEV Community
Có thể bạn quan tâm
.NET Runtime updates are compatible with the latest major version of the .NET SDKs. This means that you can remove safely the older versions.
You can see the current SDKs and runtimes are installed on you machine with the following commands:
dotnet --list-sdks dotnet --list-runtimes Enter fullscreen mode Exit fullscreen modeTo remove the unuseful version of the SDKs and runtimes, you can use the dotnet-core-uninstall tool. It's not installed by default but you can download the installer from this link: https://github.com/dotnet/cli-lab/releases
Once you've installed it, you can use the following command to see the list with the .NET SDKs and runtimes that can be removed.
dotnet-core-uninstall list Enter fullscreen mode Exit fullscreen modeYou can also perform a what-if analysis of an uninstall. This command displays the output of an uninstall task, without performing that.
dotnet-core-uninstall whatif --all
At the end, if you are convinced of the result, you can perform the real uninstall command:
dotnet-core-uninstall remove --all-previews-but-latest Enter fullscreen mode Exit fullscreen modeFor instance, this command removes .NET SDKs and runtimes marked as previews except the one highest preview.
I use this command every month. I have a task on my calendar to remind me this important task. A clean machine is a quick machine.
You can find all the commands and all the options in the official documentation at this link: https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool?tabs=windows
Happy cleaning!
Từ khóa » Gỡ Bỏ Sdk
-
Remove The .NET Runtime And SDK - Microsoft Docs
-
How To Uninstall SDK Tools?
-
Gỡ Cài đặt Các Phiên Bản SDK Android Cũ - HelpEx
-
Uninstalling The SDK And Runtime Environment - IBM
-
How To Uninstall .NET SDK Previews And Older Versions When ...
-
Sdk/dotnet-uninstall- At Main - GitHub
-
[SDK Uninstallation] When Uninstalling SDK, "ng ...
-
Removing Windows SDK From Installation Does Not Actually Remove ...
-
How To Remove .NET Runtime And SDK On Mac - IT Nota
-
C# - 복수 설치된 .NET Core SDK 삭제 - Jacking75
-
Uninstall (remove) The C SDK | New Relic Documentation
-
How To Uninstall Android SDK Application/Software On Your Mac