C
C#2y 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
Pobiega2y ago
hm.. if you do dotnet --info in a terminal, what is the output?
Jack9405
Jack9405OP2y 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
Pobiega2y 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
Jack9405OP2y ago
Jack9405
Jack9405OP2y ago
Here you go, thanks for this, I've only ever used VS code and I feel like a complete noob hahaa
Pobiega
Pobiega2y ago
hm ok I think I know what it is
Jack9405
Jack9405OP2y ago
I also only know the linux terminal haha
Pobiega
Pobiega2y ago
do you know how to open the "edit system variables" in windows?
Jack9405
Jack9405OP2y ago
Yeah I've got it open
Pobiega
Pobiega2y 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
Jack9405OP2y ago
I see it
Pobiega
Pobiega2y ago
let me know if you find one or both of these, and if both, in what order they are (top to bottom)
Jack9405
Jack9405OP2y ago
x86 appears above in the list swap order?
Pobiega
Pobiega2y ago
so you have both? yes
Jack9405
Jack9405OP2y ago
YeaH
Pobiega
Pobiega2y ago
make the non-x86 one go above the other
Jack9405
Jack9405OP2y ago
Just like this?
Jack9405
Jack9405OP2y ago
Pobiega
Pobiega2y ago
yep!
Jack9405
Jack9405OP2y ago
Great I'll save and run the command
Pobiega
Pobiega2y ago
save, close all open terminals including vs code etc
Jack9405
Jack9405OP2y ago
Great they're showing up now
Jack9405
Jack9405OP2y ago
Pobiega
Pobiega2y ago
there ya go now it should all work including creating projects via vs
Jack9405
Jack9405OP2y ago
Thank you! Gonna try generate a template now
Pobiega
Pobiega2y 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
Jack9405OP2y ago
The template has appeared o7 a lot!
Pobiega
Pobiega2y ago
then you can safely $close this
MODiX
MODiX2y ago
Use the /close command to mark a forum thread as answered

Did you find this page helpful?