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

前端 未结 10 1136
执笔经年
执笔经年 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: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.

提交回复
热议问题