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