Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confused about Release/Debug folders in Visual Studio 2010

I am working on ASP.Net MVC 3. When I build it in debug mode, all files go to the bin folder. But I have seen people with "Debug" & "Release" folders inside the bin folder. Why don't I have that in my bin folder?

How do I have Debug & Release folders in my bin folder? Or should I really have them?

Then I saw that there are Debug & Release folders inside \obj\ folder created when using "Deployment Wizard". What is the different between these folders and the ones under "bin" folder? Are these both same?

Please help.

like image 789
Gautam Jain Avatar asked Jul 17 '12 06:07

Gautam Jain


People also ask

What is the difference between Debug and Release folder?

The debug folder usually contains your program compiled for debugging, that is there is additional information included, such as variable names, that help you find errors in the program. The release folder contains your program without any of that. Just what is necessary for the program to run. Save this answer.

What is the difference between Debug and Release mode in Visual Studio?

Visual Studio projects have separate release and debug configurations for your program. You build the debug version for debugging and the release version for the final release distribution. In debug configuration, your program compiles with full symbolic debug information and no optimization.


1 Answers

Here is a good thread for what the /obj folder is for and how it's different from the /bin folder

As for why you don't have Debug/Release folders in your /bin folder:

-Under your project properties go to the Build tab

-From the Configuration on top choose Debug or Release

-For each configuration you can set the Output Path at the bottom of the window. For Debug use bin\Debug and do the same for Release.

I'm not sure why VS doesn't do this automatically -- it did it for my other projects in the same solution.

like image 159
Matt Foxx Duncan Avatar answered Sep 23 '22 23:09

Matt Foxx Duncan