Monday, August 24, 2009

  1. Open the LabelLibrary solution and rename a class name. This is a sure fire way of making dependent applications breakclip_image002clip_image004
  2. Don’t forget to check out the Release folder since it was checked in last.
    clip_image006clip_image008clip_image010
  3. Rebuild both Release and Debug and Check in.
    clip_image012
  4. The Build server will automatically rebuild the application on the server and label your build of the shared library.clip_image014
    The build server is only verifying the code compiles, tests (not shown) are run and the result is copied to the folder specified in the build definition. Remember that the dependent projects are branched from your build in the project, not the build server’s build.
  5. Queue a build for the App1 solution to see if it still works. The build server didn’t rebuild this one since we didn’t check it out.
    clip_image016
  6. It still works!
    clip_image018
Let’s update the App1 project with the new version of the shared library.
  1. Select each folder that was branched earlier and select merge from the context menu.
    clip_image020
  2. Notice that the target branch is already populated with the path for the earlier branch!
  3. Click Next and select Label.
    clip_image022
  4. Click the elipses to find the last build of the shared library.
    clip_image024
  5. Click close and finish.
    clip_image026
  6. Check in the changes.
    clip_image028
  7. The build server will automatically detect the changes and build the application.
    clip_image030
  8. Obviously it failed because we renamed the class!
    clip_image032
Lets’ Fix It
  1. Open the App1 solution and fix the references to the new class name.
    clip_image002[4]clip_image004[4]clip_image006[4]
  2. Check in! We should build it locally to verify that our changes work.
    clip_image008[4]
  3. The build server automatically notices changes and attempts rebuilding it.
    clip_image010[4]clip_image012[4]
  4. Success!!

    Now we can improve, enhance, refactor, and eliminate shared libraries independently of other dependent applications/

<Intro> / << Prev / Next >>

0 comments:

Post a Comment