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.

  3. Rebuild the Library projects in both configurations.
  4. Show all folders of the build project.
  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.
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…
  3. Modifiy the HintPath element to use $(ProjectDir) and $(Configuration) as noted below.
  4. Save and Reload the projectclip_image026
  5. Notice that when you change your configuration, the references also change!!
  1. Check in and watch it build!!!

<Intro> / << Prev


Post a Comment