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 o
You can change your build mode in top of your Visual Studio:
Dependently on which mode you build your solution, Visual Studio will generate .exe in either bin\Debug
folder or bin\Release
folder.
More expanded explanation:
Your output directory of executable file is specified by default to [your_project_directory]\bin\Debug for Debug build mode or to [your_project_directory]\bin\Release for Release build mode
To switch between default directories Debug/Release use solution proposed here.
But if you want specify your own output directory, follow these steps:
Screenshot from properties window:
This solution can be useful at least in two cases:
I hope that this description will be helpful.
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.