rbulph Posted August 31, 2006 Posted August 31, 2006 Three questions about building projects which I haven't been able to find the answers to: 1. What's the difference between Build and Rebuild? 2. What does "Clean" do? 3. What's the reason for having a "bin" and an "obj" file within a project folder? They seem rather duplicative. Thanks. Quote
Cags Posted August 31, 2006 Posted August 31, 2006 1. What's the difference between Build and Rebuild? I believe in theory Build will recompile any parts of the solution that have changed whereas Rebuild will recompile all parts of the solution. I've read that it's not perfect however and Build has been known to just recompile the entire thing. 2. What does "Clean" do? I don't appear to have this feature so I'm assuming it's a VS2005 thing. A quick search turned up this , which informs us it does the same as the command line switch /clean, but not what exactly that actually does. A further search indicated. Choose Clean Solution to delete any intermediate and output files' date=' leaving only the project and component files, from which new instances of the intermediate and output files can then be built.[/quote'] 3. What's the reason for having a "bin" and an "obj" file within a project folder? They seem rather duplicative.If I'm honest I'm not entirely sure. Curiously if you have the exe in Bin open when you hit compile you get a build error, but you don't if you have the exe in Obj open. This would seem to imply that the exe in obj is not update during the standard build process. Quote Anybody looking for a graduate programmer (Midlands, England)?
Administrators PlausiblyDamp Posted August 31, 2006 Administrators Posted August 31, 2006 IIRC the obj folder is where the intermediate files are generated during the build process, the bin folder is the resultant output. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rbulph Posted August 31, 2006 Author Posted August 31, 2006 IIRC the obj folder is where the intermediate files are generated during the build process' date=' the bin folder is the resultant output.[/quote'] Maybe. The obj folder contain a lot of "RESOURCES files" (whatever they are) which the bin folder doesn't. But both contain the final output, i.e. exes and dlls. Quote
Administrators PlausiblyDamp Posted August 31, 2006 Administrators Posted August 31, 2006 .resources are one of the intermediate file types - they are produced from the .resx files in the project itself (either directly or one per form) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Malfunction Posted September 1, 2006 Posted September 1, 2006 look at ant or nant (for .net) to see how the build process is setup manually. you will have a good idea what thinge need to be done and what the clean task is good for. it's always good to have some background knowledge although visual studio hides most of these things pretty good. Quote Debug me...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.