C
C#10mo ago
Ayoub

❔ misssing files asp.net core mvc visual studio HELP !!!

when i create a project in visual studio asp.net core , i have only the name of the solution and the project is not loaded
15 Replies
MODiX
MODiX10mo ago
Angius
Angius10mo ago
Did this not help?
Ayoub
Ayoub10mo ago
i've tried , but still not working
Angius
Angius10mo ago
Show me a screenshot of .NET SDK being enabled in the VS installer Alternatively, type dotnet --list-sdks in the command line and screenshot the output
Ayoub
Ayoub10mo ago
6.0.413 [C:\Program Files\dotnet\sdk] 7.0.400 [C:\Program Files\dotnet\sdk]
Angius
Angius10mo ago
And the same exact error about an SDK not being installed still occurs?
Ayoub
Ayoub10mo ago
I get this error when i try to add existing project , "The sdk "Microsoft .NET .Sdk.web" Specified could not be found
Angius
Angius10mo ago
Aight, what's the .NET version required by the project? It'll be in the .csproj file
Ayoub
Ayoub10mo ago
net6.0
Angius
Angius10mo ago
Okay, does it work if you run it with dotnet run command?
Ayoub
Ayoub10mo ago
yes it worked but still missing files vs
Angius
Angius10mo ago
Try using dotnet sln add to add the project to the solution manually, then open the solution with VS? https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-sln#add
Ayoub
Ayoub10mo ago
thank you i fixed the issue
Angius
Angius10mo ago
Out of curiosity, what did the trick?
Accord
Accord10mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.