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.
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
- Go to Properties
- Then go to Debug
- 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
How to Inject Dependency to Static Class
Efficient Cartesian Product Algorithm
How to List Available Video Modes Using C#
Easier Way of Writing Null or Empty
How to Invoke Scripts Work in Mshtml
How to Create Roles in ASP.NET Core and Assign Them to Users
How to Find the Actual Printable Area? (Printdocument)
Differencebetween the Override and New Keywords in C#
Get Current Url in a Blazor Component
Linq Join Iquery, How to Use Defaultifempty
How to Turn Off Impersonation Just in a Couple Instances
Convert Am/Pm Time to 24 Hours Format
"Interface Not Implemented" When Returning Derived Type
Does C# Allow Double Semicolon ; ; If So, Are There Any Special Ways
Image Is Not Drawn at the Correct Spot
Custom Authentication in ASP.NET-Core
Why Does .Net Foreach Loop Throw Nullrefexception When Collection Is Null