Search code examples
c#visual-studio-2013attach-to-process

When i press F5, an "Attach to Process" window opens


I have so many different C# source projects that run OK on other computers.

But on one computer, using Visual Studio 2013, when i press F5 to run the project, the "Attach to Process" window opens.

I searched a lot but no one have had my problem. Why is it like this? How can i fix it?


Edit:

I re installed the VS with C# configurations but it did not change anything. the Start Debugging option is disabled just like the screen shot below:


Solution

  • That will occur when you don't have a startup project set.

    Right click the project you want to start and select "Set as Startup Project". Now F5 will run that project.

    One other thing to try; from F5 or Start Debugging Button is Greyed Out for Winform application? is to:

    1. Exclude the project from you application
    2. Build the solution
    3. Re-add the project
    4. Build again
    5. Set the project as the startup project