Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - Debug Executable Specified in the Debug Profile does not Exist

Tags:

I am trying to run a simple HelloWorld C# .NET Core Console Application and I get this error. Being fairly new, I couldn't resolve it upon trying certain things mentioned in another answer. Please guide me on how to resolve it.

The error I get is:

The debug executable [PATH] specified in the [Project Name] debug profile does not exist.

Visual Studio Screenshot

like image 216
codesnerd Avatar asked Apr 10 '20 12:04

codesnerd


People also ask

How do I fix the debug executable in Visual Studio?

Just go to File->Open->Project/Solution and browse to the .exe file. Like you would if it was a . sln file. Visual Studio will then open that EXE as a project.

How do you fix Visual Studio Cannot start debugging because the debug target is missing?

Go to Build > Configuration Manager, and make sure the project has selected the Build. Then rebuild the project and see. If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

How do I run an executable in Visual Studio?

In Visual Studio, select File > Open > Project. In the Open Project dialog box, select All Project Files, if not already selected, in the dropdown next to File name. Navigate to the .exe file, select it, and select Open.


1 Answers

For me, all I needed to do was modify the Project Properties (right click the project in the Solution Explorer --> Project Properties), then under the Application tab, select an appropriate Target Framework. It was unset for me by default.

like image 192
Theo Martin Avatar answered Sep 21 '22 18:09

Theo Martin