Can't run program because it asks me to attach on process
37,846
Make sure you have your solution opened, then right click on your project > Set as Start Up Project
Author by
Nicolas Rossi
Updated on October 03, 2021Comments
-
Nicolas Rossi over 2 years
I'm new to C# Programming, and instead of just letting me run the code by pressing F5, "Attach..." appears where the Run button should be and it won't let me run the code. This has happened me twice by now and I don't know how to make the "Run" button appear again, because I can't test any program I write.
-
LeBaptiste almost 9 yearsAre you developing a console program ? If it is a library, you have to attach the process using your library.
-
Nicolas Rossi almost 9 yearsYes I am developing a console program.
-
-
Nicolas Rossi almost 9 yearsWhy isn't my project showing up in the solution explorer? Any other way that I can archieve that? link
-
Xavier almost 9 yearsBased on your screenshot, it looks like you do not have a solution open. You only have a standalone C# file open. Make sure you are opening the
.sln
file to open your project. -
Nicolas Rossi almost 9 yearsThank you very much, it solved it! But is it a bug of the program? Because I usually open the project from the "Recent projects" section, should I open it from the Open project..? Thanks again :)