Results 1 to 7 of 7

Thread: Build vs Rebuild Solution

  1. #1

    Thread Starter
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Build vs Rebuild Solution

    What exactly is the difference here? The reason I ask is I wonder if one will go out and recopy the dll's from their source directories replacing the local copies in the project bin directory.

  2. #2
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Heres a quick answer I found on the web
    Rebuild performs an extra "clean" operation step, cleaning all intermediary
    files and output directories before building the solution.
    If you use the command line /rebuild is equivalent to /clean /build

  3. #3

    Thread Starter
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Well,hmm, here's my situation:

    I have 3 projects in my solution. The main project (startup) is a Windows Application, and one is a class library project.

    The IDE, by default, will make a copy of the class library dll, and stick it in the Windows Application bin directory when you set a reference to the class library from the Windows App project.

    So anytime I make changes to my class library, I have to unset the reference to it in my Windows Application, and reset it, so the IDE will go fetch the dll from the class libary bin folder.

    I saw a property on the references that you can switch from Copy Local = true, or false. It's on True by default.

    I had thought if I changed it to false, the Windows Application will always use the source copy (not a local copy) when building, but then I get a 'cannot copy reference to output directory error'.

    How to solve this?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    In your references, if you reference the project for the dll instead of the dll itself it will automatically update for you. This assumes that the dll project is one of the projects in the solution.

  5. #5

    Thread Starter
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Thanks Ednesis, you know I never even noticed the Projects tab when you're adding a reference. Phew. That should be a tip of the day.

  6. #6
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    I believe you can also just click on the reference to select it and then click the refresh icon that appears at the top of the soultion explorer.

  7. #7
    Member
    Join Date
    Jul 2005
    Posts
    40

    Re: Build vs Rebuild Solution

    Yes, the refresh works for me too

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