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