Debug Target Is Missing

Debug Target Missing Visual Studio

I did some research and test, and I think you can check if following option has been selected.

Right-click solution > Properties > Configuration Properties > Configuration > check the Build checkbox of your project > Apply > OK.

Beside, please also choose Set as Startup Project for your project which you’d like to debug.

Sample Image

Debug Target Is Missing?

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

steps for changing target path is

  1. Go to Properties
  2. Then go to Debug
  3. Browse the Start external program and select the bin/Debug/.exe file

VS2019 ,NET Core 5.0 Razor Pages ~ Unable to launch browser could not connect to debug target

It is not necessary to delete the whole .vs folder, just go to .vs/project/ and delete the debuggerConfiguration -... json file.
It is important to close any browser windows that have remained open before running the project again, otherwise it will recreate the debuggerConfiguration -... json file but it still gives an error.

.vs/project/



Related Topics



Leave a reply



Submit