Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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.
Anybody looking for a graduate programmer (Midlands, England)?
Posted
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.

Posted

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.

Debug me...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...