首页 > 解决方案 > Microsoft .NET Core SDK manager

问题描述

It turned out that i have tens of side by side installed Microsoft .NET Core SDK 2.1.??? (x64) visible from Apps & Features windows settings. e.g.

Microsoft .NET Core SDK 2.1.100 (x64)
Microsoft .NET Core SDK 2.1.102 (x64)
Microsoft .NET Core SDK 2.1.104 (x64)
...
Microsoft .NET Core SDK 2.1.509 (x64)
Microsoft .NET Core SDK 2.1.511 (x64)
Microsoft .NET Core SDK 3.1.101 (x64)

Is there some kind of "dotnet core" runtime manager to keep these under control? e.g. like we have Android SDK manager where we can install/uninstall what we need in a batch?

Note: My problem is that if there is no such manager, i have to manually go through all uninstalls one by one.

标签: .net-core

解决方案


globals.json如果您使用 CLI,我相信您必须在当前工作目录中生成一个文件。

https://docs.microsoft.com/en-us/dotnet/core/tools/global-json?tabs=netcore3x


推荐阅读