C
C#17mo 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
MODiX17mo ago
Angius
Angius17mo ago
Did this not help?
Ayoub
AyoubOP17mo ago
i've tried , but still not working
Angius
Angius17mo 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
AyoubOP17mo ago
6.0.413 [C:\Program Files\dotnet\sdk] 7.0.400 [C:\Program Files\dotnet\sdk]
Angius
Angius17mo ago
And the same exact error about an SDK not being installed still occurs?
Ayoub
AyoubOP17mo ago
I get this error when i try to add existing project , "The sdk "Microsoft .NET .Sdk.web" Specified could not be found
Angius
Angius17mo ago
Aight, what's the .NET version required by the project? It'll be in the .csproj file
Ayoub
AyoubOP17mo ago
net6.0
Angius
Angius17mo ago
Okay, does it work if you run it with dotnet run command?
Ayoub
AyoubOP17mo ago
yes it worked but still missing files vs
Angius
Angius17mo 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
AyoubOP17mo ago
thank you i fixed the issue
Angius
Angius17mo ago
Out of curiosity, what did the trick?
Accord
Accord17mo 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.

Did you find this page helpful?