I created a new project in Visual Studio 2010 and noticed that there are now two new folders named obj and bin in my project directory.
A similar pair of folders are created when building and debugging – what are these folders for?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
objfolder holds object, or intermediate, files, which are compiled binary files that haven’t been linked yet. They’re essentially fragments that will be combined to produce the final executable. The compiler generates one object file for each source file, and those files are placed into theobjfolder.The
binfolder holds binary files, which are the actual executable code for your application or library.Each of these folders are further subdivided into
DebugandReleasefolders, which simply correspond to the project’s build configurations. The two types of files discussed above are placed into the appropriate folder, depending on which type of build you perform. This makes it easy for you to determine which executables are built with debugging symbols, and which were built with optimizations enabled and ready for release.Note that you can change where Visual Studio outputs your executable files during a compile in your project’s Properties. You can also change the names and selected options for your build configurations.