✅ New to .NET, when creating a new ASP.NET Core Web API project no template generates.
I have the templates component installed.
29 Replies
hm.. if you do
dotnet --info
in a terminal, what is the output?
Which is weird because I have installed .NET 6.0 SDK through the installer.
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? 🙂
Here you go, thanks for this, I've only ever used VS code and I feel like a complete noob hahaa
hm ok I think I know what it is
I also only know the linux terminal haha
do you know how to open the "edit system variables" in windows?
Yeah I've got it open
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\
I see it
let me know if you find one or both of these, and if both, in what order they are (top to bottom)
x86 appears above in the list
swap order?
so you have both?
yes
YeaH
make the non-x86 one go above the other
Just like this?
yep!
Great I'll save and run the command
save, close all open terminals
including vs code etc
Great they're showing up now
there ya go
now it should all work
including creating projects via vs
Thank you! Gonna try generate a template now
so to summarize, the problem here was that you had the x86 runtime installed before installing the x64 sdk
these have different
dotnet.exe
s 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 worksThe template has appeared a lot!
then you can safely $close this
Use the /close command to mark a forum thread as answered