Monday, August 24, 2009

Setup the Build Project for the Shared Libraries
  1. clip_image002Open the LabelLibrary solution and add an empty project called Build.  This will contain the build products of the other projects in the solution. 
    I wish adding a solution folder would work.
  2. Change the build path of the both Library projects to ..\build\Debug and ..\build\Release for each configuration.

    clip_image006clip_image008
  3. Rebuild the Library projects in both configurations.
  4. Show all folders of the build project.
    clip_image010
  5. Include the Debug and Release folders in the project and check in. This will cause an automatic rebuild and label from the build server.
    clip_image012clip_image014
Reference Your Application to a Specific Build
  1. clip_image016Branch the Build project folder to a sub folder called LabelLibrary of the Dependencies folder of the App1 project folder. Be sure to select the latest label.
  2. Check in the branch.
  3. Open the App1 solution.
  4. clip_image018Delete the references to the old libraries and add new references to the libraries in the new folder structure of the Dependencies folder.

    Some might note that we could have used Reference paths for the project to pickup where the DLL’s are, but note that the reference paths are only for the current user and are not checked in.
Reference Debug to Debug and Release to Release
  1. clip_image020Open the project file in notepad or select Edit Project File from the Context Menu.



  2. Click continue…
    clip_image022
  3. Modifiy the HintPath element to use $(ProjectDir) and $(Configuration) as noted below.
    clip_image024
  4. Save and Reload the projectclip_image026
  5. Notice that when you change your configuration, the references also change!!
    clip_image028
    clip_image030
Finally!!
  1. Check in and watch it build!!!
    clip_image032

<Intro> / << Prev

0 comments:

Post a Comment