Search code examples
.netwindowswindows-terminal

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?

enter image description here


Solution

  • 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.