Microsoft Visual Studio 2022 run without debugging button greyed out

Riri 25 Reputation points
2023-05-13T17:58:22.6666667+00:00

I recently installed visual studio 22, and the run without debugging button is greyed out. I have uninstalled and installed the program several times, still the same problem.

Please see the attached picture. How can I resolve it? I am using MS windows 11.

Screenshot 2

Screenshot 1

Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Setup
Developer technologies Visual Studio Other
{count} vote

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-05-15T03:36:21.4766667+00:00

    Hi @Riri, 

    Welcome to Microsoft Q&A! 

    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. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.