views:

389

answers:

2

I had a very basic question.

When we compile VS 2005 C# application, it creates two folder. One is Bin folder and other one is Obj folder . Doe any one know why it creates Obj folder....I tried to find out the docs for it but could not find it....

+2  A: 

Devenv will compile whatever projects you have configured for debugging using the appropriate compilers.

The compilers create obj directories as a temporary files.

bin will contain a folder for each of your solution configuration (debug is the default) which contains the build outputs for your project.

Spence
+12  A: 

The bin\ folder holds the results of the build: the binaries to distribute or archive, the XML documentation file, necessary dependencies and debug symbols.

The obj\ folder contains temporary files created during compilation. They are preserved so for an incremental build, the compiler can skip individual source files if they haven't changed and use the temporary files instead. That's faster :)

peterchen