英文:
Microsoft Visual Studio 2022 "start without debugging" and "start debugging" buttons are greyed out
问题
I just installed Visual Studio 2022 on my Windows 11 computer and I am trying to execute my first project.
我刚刚在我的Windows 11电脑上安装了Visual Studio 2022,我正在尝试执行我的第一个项目。
I noticed that the "start without debugging" and "start debugging" buttons are greyed out. Surprisingly, the solution explorer is recording zero projects, although the name of the project I created is shown in the solution explorer. Please see attached screenshot.
我注意到“无调试启动”和“启动调试”按钮都变灰色。令人惊讶的是,解决方案资源管理器中记录了零个项目,尽管我创建的项目名称显示在解决方案资源管理器中。请参见附加的截图。
I googled the problem and saw several similar complaints, but none of the provided solutions have worked for me. I have also uninstalled and installed VS 2022 several times with no solution.
我搜索了这个问题,看到了几个类似的投诉,但提供的解决方案都没有对我起作用。我还多次卸载和安装了VS 2022,但问题没有解决。
Please, I will be extremely grateful if someone can please help resolve this problem.
请,如果有人能帮助解决这个问题,我将非常感激。
英文:
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.
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
答案1
得分: 1
请检查您的系统环境变量,看看是否有两个dotnet路径:
C:\Program Files\dotnet
C:\Program Files (x86)\dotnet
如果是这样,请删除这个路径:C:\Program Files (x86)\dotnet。
然后,重新启动计算机,检查项目是否可以正常创建。
成功创建项目后,调试菜单将正常显示。
我从以下链接获得了答案:
https://learn.microsoft.com/en-us/answers/questions/1283801/microsoft-visual-studio-2022-run-without-debugging
英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论