Debug Target Is Missing?

后端 未结 19 2143
南笙
南笙 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:04

    Problem: The problem was I had bad nuget source configuration, so the solution could not start properly despite the fact it was build correctly because it still saw old dll references.

    Solution: It was not enough to change nugget source url, I just had to remove entire nugget source and add it again with proper url. Clean solution and rebuild it.

    0 讨论(0)
  • 2020-11-27 21:06

    Here is the solution for this problem, no need to change anything for this problem. You all know C# is case sensitive language and we have to write all methods and statements in correct case. We all are just missing this thing and we just have to change method 'main() --> Main()' This thing solved my problem please let me know if you still find any :-)

    0 讨论(0)
  • 2020-11-27 21:08

    I've found that this can happen if all the files are deleted from the bin folder. ReBuild the app to force a full build: right click on the project in solution explorer and select ReBuild.

    0 讨论(0)
  • 2020-11-27 21:08

    If the above explanation does not help you, then you could have error in the program. I have the same issue and I solved it as I cut the functions used in the same class and one of the functions were the cause of it.

    0 讨论(0)
  • 2020-11-27 21:09

    I tried everything mentioned in this thread but none worked. Then, i tried the simplest thing and it worked. Close visual studio and open it back up again.

    0 讨论(0)
  • 2020-11-27 21:10

    You could open the project file with a text editor and replace 'c:\target' by 'bin\Debug'

    EDIT

    There are other more helpful answers but I can't delete mine since it's the accepted one.

    @CZFox Answer

    @Yehuda Shapira Answer

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