Results 1 to 4 of 4

Thread: Difference between build, rebuild, and clean

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Difference between build, rebuild, and clean

    Hello,

    I am using VS 2005 and I am wondering what is the difference between build, rebuild, and clean.

    Many thanks,

    Steve
    steve

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Difference between build, rebuild, and clean

    I just opened my MSDN library, changed the filter to Visual Studio and entered clean into the index. Near the top of the list was a topic entitled Clean Solution command. I clicked it and it took me to a topic named "How to: Prepare and Manage Builds" that included a description of the commands on the Build menu. From go to woah it took about 10 seconds. I'm fairly sure that one day soon someone will believe me that MSDN is easy to use and contains almost all the information a .NET developer needs.
    Choose Build or Build Solution to compile only those project files and components that have changed since the last build.
    Choose Rebuild Solution to "clean" the solution first, and then build all project files and components.
    Choose Clean Solution to delete any intermediate and output files, leaving only the project and component files, from which new instances of the intermediate and output files can then be built.
    Last edited by jmcilhinney; Apr 12th, 2007 at 10:07 PM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    New Member
    Join Date
    Apr 2009
    Posts
    1

    Resolved Re: Difference between build, rebuild, and clean

    Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not. Build is the normal thing to do and is faster. Sometimes the versions of project target components can get out of sync and rebuild is necessary to make the build successful. In practice, you never need to Clean.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Difference between build, rebuild, and clean

    Quote Originally Posted by ponvanaraja View Post
    Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not. Build is the normal thing to do and is faster. Sometimes the versions of project target components can get out of sync and rebuild is necessary to make the build successful. In practice, you never need to Clean.
    Welcome to the forums, but dredging up a 2 year old thread and essentially repeating what had already been said is a bit of an inauspicious start to your time here.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width