Windows 终端未显示所有 .NET SDK。

huangapple go评论63阅读模式
英文:

Windows Terminal Not showing all .net SDKs

问题

I have a set of projects which build okay within Visual Studio 2022.

When using a build script from Windows Terminal 1.16.... it fails to recognise the SDKs and only shows 6.0 (see below).

dotnet --list-sdks                                                                                                                      
6.0.307 [C:\Program Files (x86)\dotnet\sdk]

How to I get Windows Terminal to see the installed versions of .net?

Windows 终端未显示所有 .NET SDK。

英文:

I have a set of projects which build okay within Visual Studio 2022.

When using a build script from Windows Terminal 1.16.... it fails to recognise the SDKs and only shows 6.0 (see below).

dotnet --list-sdks                                                                                                                      
6.0.307 [C:\Program Files (x86)\dotnet\sdk]

How to I get Windows Terminal to see the installed versions of .net?

Windows 终端未显示所有 .NET SDK。

答案1

得分: 1

解决方法是将64位dotnet目录的路径放在32位版本之前,然后我可以看到所有的.NET版本。

英文:

The solution is to put the path for the 64 bit dotnet directory in the path higher up the 32 bit version, and then I see all the .net versions.

huangapple
  • 本文由 发表于 2023年2月7日 01:29:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/75364649.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定