Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Two folders : Bin and Obj....Does anyone know why...? [duplicate]

I have a very basic question.

When we compile a VS 2005 C# application, it creates two folders. One is a bin folder and another one is an obj folder. Does anyone know why it creates an obj folder? I tried to find out the docs for it but I could not find it...

like image 574
MAC Avatar asked Sep 10 '25 10:09

MAC


2 Answers

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 :)

like image 85
peterchen Avatar answered Sep 12 '25 23:09

peterchen


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.

like image 37
Spence Avatar answered Sep 12 '25 23:09

Spence