Solved

Project Builds fine but doesn't create an executable

Posted on 2006-11-13
5
2,009 Views
Last Modified: 2008-09-23
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
Comment
Question by:onholdmarketing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:so3
ID: 17933416
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
 

Author Comment

by:onholdmarketing
ID: 17933481
This how it is set already.
0
 
LVL 6

Accepted Solution

by:
so3 earned 500 total points
ID: 17933521
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
 

Author Comment

by:onholdmarketing
ID: 17933712
It is in a folder called /obj  why is it there?
0
 
LVL 6

Expert Comment

by:so3
ID: 17933870
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question