Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Project Builds fine but doesn't create an executable

Posted on 2006-11-13
5
Medium Priority
?
2,060 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 2000 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 September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. 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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

722 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