[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2132
  • Last Modified:

Project Builds fine but doesn't create an executable

I get the following message box

"visual Studio cannot start debugging because teh debug target "<path><project>/projectname.exe' is missing Please build the project and retry, or set the OutPutPath and AssemblyName Properties appropriately to point to the  correct location for the target assembly.

0
onholdmarketing
Asked:
onholdmarketing
  • 3
  • 2
1 Solution
 
so3Commented:
Click on the project properties and on the Build tab set the output path to /bin/debug and then rebuild your project.

The executable can not be found and that's why you get the error. Check the output path and assembly name to be correct from project properties and the rebuild the project

0
 
onholdmarketingAuthor Commented:
This how it is set already.
0
 
so3Commented:
did you change the paths. i think  that the executable is created but is not in the debug folder.  Ty searching in project folder to see if it creates.
0
 
onholdmarketingAuthor Commented:
It is in a folder called /obj  why is it there?
0
 
so3Commented:
When you build the project also puts the assembly and the files in the obj  folder. You have to copy the exe file from obj in bin\debug.

After rebuilding your project if you still get the error type this to copy the file automatically.

In you Visual Studio solution properties choose Common Properties->Post-Build Event Command Line, and type:
copy "$(ProjectDir)OBJ\DEBUG\$(TargetFileName)"  "$(ProjectDir)$(OutDir)$(TargetFileName)"

Everytime you will build the solution, the file will be copied to the folder with the binary.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now