Visual Studio 2022 run without debugging button greyed out

Generic Guy no #400 26 Reputation points
2022-12-02T22:51:21.923+00:00

For some reason, whenever I try and run my project in visual studio 2022, the "run without debugging" button is greyed out, I have tried to find multiple answers to this problem but it seems like an uncommon error, it is my only project in my only solution folder, so I'm not so sure what could be causing it.

In case it helps, I'm trying to run a monogame template project and I'm not signed in

here is an image of what my UI looks like:

266793-image.png

Developer technologies Visual Studio Debugging
Developer technologies Visual Studio Other
{count} votes

6 answers

Sort by: Most helpful
  1. Ghazal Mousavi 0 Reputation points
    2023-09-03T21:58:16.2266667+00:00

    I just faced this right now, but for me the reason was:

    I had opened the program.cs file instead of .sln file. The problem simply solved when I closed the instance and double clicked .sln to open it!

    0 comments No comments

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.