Solved

Project Builds fine but doesn't create an executable

Posted on 2006-11-13
5
1,957 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
  • 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now