bungpeng Posted April 29, 2004 Posted April 29, 2004 What is the different between 'Build' and 'Rebuild' (compile) in VS.NET? :confused: Quote
fadi Posted April 29, 2004 Posted April 29, 2004 build builds the only partions of code u changed last, rebuild performs a comlplete build operation. Quote
bungpeng Posted April 29, 2004 Author Posted April 29, 2004 You mean VS.NET will keep track which code had been modified, and BUILD only build that portion of code? Then why I need to rebuild? Quote
Arch4ngel Posted April 29, 2004 Posted April 29, 2004 Rebuild might be useful if you want to make sure he did recompile the whole program. I use rebuild often when it's time to give an Beta Version or a Retail version. Rebuild might do something more that I'm not in knowledge of. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
akiaz Posted April 29, 2004 Posted April 29, 2004 Rebuild forces a complete rebuild of your project or solution which is useful when you have a reference that has changed. Useful for when you have an assembly that you update that your project is referenced to...VS may not be able to detect that you have updated it so forcing a complete rebuild will ensure your code will work properly with that assembly. Quote
*Experts* Nerseus Posted April 30, 2004 *Experts* Posted April 30, 2004 To elaborate on akiaz's comment: References marked as "Copy Local" (the default) will be recopied to your local harddrive. At my work, we keep the "common" DLLs on the network so everyone can reference them in the same location. Visual Studio does NOT recognize when these files change. A rebuild will always copy down the referenced files so that I can "see" new classes/methods when they're added. I generally use Build when I'm checking for syntax - just to make sure it compiles. I use Rebuild when I'm going to run my app (in Visual Studio) or when I want to compile and give out the DLL or EXE. Even with a large solution of 14 fairly large assemblies, a full rebuild only takes 5 or 10 seconds. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
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.