I’m trying to make a new .NET project in Visual Studio Code, but I keep getting this error:
Command ‘.NET: New Project…’ resulted in an error
Unable to get dotnet information to initialize template engine host
How do I fix this? I think there might be something wrong with my .NET SDK installation. I tried installing it from VSC, but it kept giving an undefined error. So, I downloaded the installer from the Microsoft website and used that, and it didn’t give any errors. When I go to C:Program Filesdotnetsdk, it has the 8.0.301 folder, and it has stuff in it. However, when I run dotnet –list-sdks in the command prompt, it just shows an empty list. Not an error, just literally:
C:UsersMyUsername>dotnet --list-sdks
C:UsersMyUsername>
Could there be some environmental variable that isn’t set?