0

I just installed visual studio 22 on my MS windows 11 computer and I am trying to execute my first project.

I noticed that the "start without debugging" and "start debugging" buttons are greyed out. Surprissingly, the solution explorer is recording zero project, all though the name of the project I created is shown in the solution explorer. Please see attached screenshot.

enter image description here

I googled the problem, and saw several similiar complains but none of the provided solutions have worked for me. I have also uninstalled and installed VS 2022 several times, with now solution.

Please, I will be extremely grateful if someone can please help resolve this problem

Riri-bea
  • 11
  • 2

1 Answers1

1

Finally seen an answer that worked for me. I figured others may find this answer useful.

Please check your System environment variables if there are two paths to dotnet.

C:\Program Files\dotnet

C:\Porgram Files (x86)\dotnet

If so, please delete this one: C:\Porgram Files (x86)\dotnet.

Then, restart your computer and check if the project can be created normally.

After the project is created successfully, the debug menu will display normally.

I got the answer from: https://learn.microsoft.com/en-us/answers/questions/1283801/microsoft-visual-studio-2022-run-without-debugging

Riri-bea
  • 11
  • 2
  • Hi Riri, since you verified and found the detailed solution of the question, you can [mark this as the answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235) to end this question. This will be beneficial to others when searching the issue in stackoverflow after meeting a similar issue . :) – Bowman Zhu-MSFT May 18 '23 at 06:35