Debug Target Is Missing?

后端 未结 19 2238
南笙
南笙 2020-11-27 20:24

When I try to build my solution, I get the following error:

Visual Studio cannot start debugging because the debug target \'c:\\target\' is missing. P

19条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 21:18

    This was a really annoying error!

    I kept trying to start a debug instance but it just wouldn't make an exe! Though there were errors in my ConnectionString (while trying to make an SQL connection). There were two backslashes that were supposed to be a part of a path and the tutorial I was following told me to ignore it.

    Well, turns out that was the error. A backslash marks the beginning of some escaping that you want to do, and the way to have a backslash displayed is \\ instead of \.

    Got rid of that, and it worked for me.

    EDIT: It would seem that you have to get rid of the tiny errors that you have made while writing your code to let it compile properly.

提交回复
热议问题