Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Express 2012 not building exe in Release folder

I have compiled a simple 'Hello World' program. The program is successfully compiled without any errors. I can see a working executable in bin folder. But the Release folder of the project is totally empty.

I don't know if there is any settings problem or any problem in building. Apparently, I don't see any error.

like image 362
Phoenix Avatar asked Aug 19 '13 18:08

Phoenix


People also ask

How do I compile in Visual Studio release mode?

In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release. Select the Advanced button (or the Advanced Compile Options button in Visual Basic).

Can you open an exe in Visual Studio?

In Visual Studio, select File > Open > Project. In the Open Project dialog box, select All Project Files, if not already selected, in the dropdown next to File name. Navigate to the .exe file, select it, and select Open.


2 Answers

You can change your build mode in top of your Visual Studio:

enter image description here

Dependently on which mode you build your solution, Visual Studio will generate .exe in either bin\Debug folder or bin\Release folder.

like image 98
Przemysław Kalita Avatar answered Sep 21 '22 19:09

Przemysław Kalita


Make sure you're building the release version, not the debug version. By default, VS will build a Debug build, which will go into the bin\Debug folders.

For details, see How to: Set Debug and Release Configurations.

like image 21
Reed Copsey Avatar answered Sep 19 '22 19:09

Reed Copsey