C# Debug - cannot start debugging because the debug target is missing

前端 未结 10 1083
执笔经年
执笔经年 2020-12-09 14:47

I am fairly new to C#..

I am using Visual Studio 12, the source I am using was last edited in VS 12.. But my problem is that it\'s throwing me this error:

相关标签:
10条回答
  • 2020-12-09 15:40

    I had the same problem and unfortunately non of above answers worked for me . the solution that worked for me is :

    right click on your startup project and select Properties - Debug and change "start external program: " to the correct path

    Done!

    0 讨论(0)
  • 2020-12-09 15:41

    Please try with the steps below:

    1. Right click on the Visual Studio Project - Properties - Debug - (Start Action section) - select "Start project" radio button.
    2. Right click on the Visual Studio Project - Properties - Debug - (Enable Debuggers section) - mark "Enable the Visual Studio hosting process"
    3. Save changes Ctrl + Shift + S) and run the project again.

    P.S. I experienced the same problem when I was playing with the options to redirect the console input / output to text file and have selected the option Properties - Debug - (Start Action section) - Start external program. When I moved the Solution to another location on my computer the problem occurred because it was searching for an absolute path to the executable file. Restoring the Visual Studio Project default settings (see above) fixed the problem. For your reference I am using Visual Studio 2013 Professional.

    0 讨论(0)
  • 2020-12-09 15:46

    Go to Project > properties > Debug Tab and set the Launch to "Project"

    0 讨论(0)
  • 2020-12-09 15:46

    I also get this error quite often.

    I solve this by modifying the code (doing a very small change), saving it, then building the solution again.

    0 讨论(0)
提交回复
热议问题