Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How come there's is no exefile if you rightclick under you're project and choose Open folder in Windows Explorer and there is no .exe file not under Debug or projectdirectory?

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

Here are a couple steps that should help to solve the problem. After opening your project in Visual Studio:

  1. Select Rebuild Solution from the Build menu. From the View menu select Output and watch the build output in the window at the bottom of the screen. You should get a final output something like this, otherwise there was a build error, look through the output window to identify the error:

    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

  2. Right click on your project and select Properties. In the General section of Linker look at the Output File. This is the path where the executable should be output. If the path includes macros (i.e. $(OutDir)) click the textbox and click the drop-down error that appears to the right and select Edit. In the dialog that appears click the Macros button to expand the list of available macros. This should help you figure out where your executable is and where it is named.

If you just set up a new Visual Studio project, the default path is:

$(SolutionDir)\$(ConfigurationName)\$(ProjectName).exe

so your path would be something like

%USERPROFILE%\My Documents\Visual Studio 2008\Projects\TestProj\Debug\TestProj.exe
share|improve this answer
    
The path was $(OutDir)\$(ProjectName).exe and all the exe was in there, but what it the best workflow, of course it depends but any comment on where to have exes? BTW thanks! –  Chris_45 Jan 5 '10 at 13:59
    
That is a typical (default) place to have the exe and should work fine for your project. $(OutDir) is defined on the General tab the Configuration Properties under Output Directory and defaults to $(SolutionDir)\$(ConfigurationName). –  heavyd Jan 5 '10 at 14:45
add comment

You'll have to build/debug the project at least ones.

D:\yourProjectfolder\yourProject\bin\Debug\yourProject.exe
D:\yourProjectfolder\yourProject\bin\Release\yourProject.exe
share|improve this answer
    
No releasefolder... –  Chris_45 Jan 5 '10 at 12:03
add comment

It should be under your debug or release folder for a c++ project, under the bin folder for a .net project.

Are you sure that the project has been built?

share|improve this answer
    
Yes I've built it the .obj .htm .manifest .manifest.res .manifest .res .manifest .dep .idp and .pdb in that order and no releasefolder –  Chris_45 Jan 5 '10 at 12:02
    
BTW it's a C program –  Chris_45 Jan 5 '10 at 12:16
    
@Chris_45: There must have been an linker error probably... look at the output window, are there no errors or warnings? –  fretje Jan 5 '10 at 12:46
    
Just 1 about the unsafe scanf –  Chris_45 Jan 5 '10 at 13:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.