C
C#11mo ago
Jack9405

✅ New to .NET, when creating a new ASP.NET Core Web API project no template generates.

I have the templates component installed.
29 Replies
Pobiega
Pobiega11mo ago
hm.. if you do dotnet --info in a terminal, what is the output?
Jack9405
Jack940511mo ago
.NET Core SDKs installed: No SDKs were found.
.NET Core SDKs installed: No SDKs were found.
Which is weird because I have installed .NET 6.0 SDK through the installer.
Pobiega
Pobiega11mo ago
Can you show the full output? I think I know what it is, but I need the entire thing to verify also, why 6.0 when 7.0 has been out for a year? 🙂
Jack9405
Jack940511mo ago
Jack9405
Jack940511mo ago
Here you go, thanks for this, I've only ever used VS code and I feel like a complete noob hahaa
Pobiega
Pobiega11mo ago
hm ok I think I know what it is
Jack9405
Jack940511mo ago
I also only know the linux terminal haha
Pobiega
Pobiega11mo ago
do you know how to open the "edit system variables" in windows?
Jack9405
Jack940511mo ago
Yeah I've got it open
Pobiega
Pobiega11mo ago
awesome. go to "system variables" and click "edit" on your Path you'll get a big list we need to look for C:\Program files\dotnet\ and C:\Program files (x86)\dotnet\
Jack9405
Jack940511mo ago
I see it
Pobiega
Pobiega11mo ago
let me know if you find one or both of these, and if both, in what order they are (top to bottom)
Jack9405
Jack940511mo ago
x86 appears above in the list swap order?
Pobiega
Pobiega11mo ago
so you have both? yes
Jack9405
Jack940511mo ago
YeaH
Pobiega
Pobiega11mo ago
make the non-x86 one go above the other
Jack9405
Jack940511mo ago
Just like this?
Jack9405
Jack940511mo ago
Pobiega
Pobiega11mo ago
yep!
Jack9405
Jack940511mo ago
Great I'll save and run the command
Pobiega
Pobiega11mo ago
save, close all open terminals including vs code etc
Jack9405
Jack940511mo ago
Great they're showing up now
Jack9405
Jack940511mo ago
Pobiega
Pobiega11mo ago
there ya go now it should all work including creating projects via vs
Jack9405
Jack940511mo ago
Thank you! Gonna try generate a template now
Pobiega
Pobiega11mo ago
so to summarize, the problem here was that you had the x86 runtime installed before installing the x64 sdk these have different dotnet.exes and different path entries and the x86 runtime was intercepting the calls meant for the x64 sdk so we re-ordered it to prefer the x64 one and now it works
Jack9405
Jack940511mo ago
The template has appeared o7 a lot!
Pobiega
Pobiega11mo ago
then you can safely $close this
MODiX
MODiX11mo ago
Use the /close command to mark a forum thread as answered