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

Share:
37,846
Nicolas Rossi
Author by

Nicolas Rossi

Updated on October 03, 2021

Comments

  • Nicolas Rossi
    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
      LeBaptiste almost 9 years
      Are you developing a console program ? If it is a library, you have to attach the process using your library.
    • Nicolas Rossi
      Nicolas Rossi almost 9 years
      Yes I am developing a console program.
  • Nicolas Rossi
    Nicolas Rossi almost 9 years
    Why isn't my project showing up in the solution explorer? Any other way that I can archieve that? link
  • Xavier
    Xavier almost 9 years
    Based 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
    Nicolas Rossi almost 9 years
    Thank 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 :)