0

I am using Visual Studio 2022 Community edition in version 17.5.2.

I work as a company that has a project created in 2015 that runs fine in Visual Studio 2022, but when I create a new project (in this case an ASP.NET MVC), it does not open correctly, as it only opens the folders but cannot run the project.

enter image description here

As you can see in the file explorer the project is not shown and debug is not enabled.

I would like to see it this way again.

enter image description here

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • This seems to happen often... a number of other posts I've seen asking the same thing, including this one https://stackoverflow.com/questions/74386006/why-my-latest-version-visual-studio-2022-does-not-contain-any-project-under-the they ended up reinstalling and eventually it worked – Timothy G. Mar 19 '23 at 13:09

1 Answers1

0

In my relentless search to solve the problem the solution can be found. Here is everything I could find on the links:

https://www.youtube.com/watch?v=DjEndbZZyCA .NET SDK's Not Installing Correctly

I managed to find the answer to this problem, and anyone else who has this problem can probably solve it with this solution too! So, the reason it fails is because of the way the .NET Core SDK installer works, it doesn't install the SDK correctly for some reason, so you have to do it manually. Go to this link , where you would normally get the SDK installer, but instead of downloading the normal version, download the binary version. It should download as a .zip, so extract it and then copy the contents of the folder. Go to C:\Program Files (x86)\dotnet and then delete its contents, finally paste your clipboard into the folder. Now test it, open a new command prompt or PowerShell and typedotnet --info. It should tell you that you have all the SDKs and Runtimes installed. Note that you will need to download the most recent version of the binaries, that way you will have the latest version of the SDKs.