Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio 2008 isn't creating an .exe file when i build my project. any ideas why?

i'm new to visual studio and couldn't find anything on google about this. i know this is an extremely noobish question, but i can't seem to find any info for it.

the debug shows me whatever i write, and the build has no errors, so i know the code i'm writing is fine.

the release folder doesn't contain the .exe, even after i build it, rebuild, clean, etc.

it's a win 32 console project. the release folder contains the .obj files, the manifest, the build log, idb, pch and pdb files (one of each)

like image 273
they changed my name Avatar asked Jan 17 '10 23:01

they changed my name


4 Answers

Some possible reasons:

  • Did you accidentally create a class library project? In that case the output would be a DLL and not an EXE.
  • Does the output window or the error list display any build errors? In that case you should first fix these, then build again.
  • Did you change the configuration of the project, so that the output (EXE) is created in a different folder than the default one?
like image 137
M4N Avatar answered Nov 14 '22 05:11

M4N


There's not a whole lot of reason for people to be guessing... You said you can find the build log - the exact location of any output file will be in there. To make sure you're seeing the right build log file, the output window in VS will have a link to the file that particular build run created:

1>Build log was saved at "file://c:\DevTrees\cppTest\Debug\BuildLog.htm"
1>cppTest - 0 error(s), 2 warning(s)

If you're having trouble interpreting it, post the contents.

like image 38
Michael Burr Avatar answered Nov 14 '22 06:11

Michael Burr


I had the same problem; the advice above to look closely at the output window was just what I needed - thanks. My confusion was because I was looking in solution>project>Debug when VS put it in solution>Debug.

like image 3
Mike Gleen Avatar answered Nov 14 '22 05:11

Mike Gleen


The Release and Debug folders contain outputs from different build configurations.

If you look in Project properties, you will see an Output Folder setting in the Build section, and it will be different for each configuration. (You can see the setting for each configuration using the dropdown list at the top of the Project Properties window)

The Release folder will only get populated when you build the project in the Release configuration.

To switch to the Release configuration, use the dropdown list in the toolbar.

EDIT: I am describing the UI for C# projects. It may be different for native code.

like image 1
SLaks Avatar answered Nov 14 '22 04:11

SLaks