Where is the AdditionalReferencePath in TFS 2010?

by Ewald Hofman 9. February 2010 09:43

When you created a new build definition in TFS 2008, there were a few lines in the TFSBuild.proj file that gave you the ability to give hints where your references were stored. This was very useful when you included the external references in Version Control, so you did not need to install the assemblies in the GAC of every development machine and the build server.

In TFS 2010, the build is now based on Windows Workflow, and there is no default option to add the hintpaths (or additionalreferencepaths) where the build can find your external files. You now have to specify the paths as MSBuild Arguments. You can do that as following:

  1. Find your build definition in the Team Explorer
  2. Right click on the build and choose “Edit Build Definition”
  3. In the list on the left, select the “Process” step
  4. Open the Advanced secion
  5. Select the MSBuild Arguments property and type the following: /p:ReferencePath=”<mypath>\<myfile>”

You can specify multilple reference paths by adding multiple paths splitted by ';', like /p:ReferencePath="c:\builds\...\path1;c:\builds\...\path2".

I have not found a resolution yet to make this path relative.

Tags:

Comments

5/19/2010 5:06:32 AM #

Rob

This worked nicely. Thanks for the tip.

Rob

Rob Australia | Reply

5/26/2010 10:03:43 AM #

Amy

For those who may be battling to get this to work for multiple paths, try surrounding the entire list with quotes. e.g. /p:ReferencePath="C:\Dir1\;C:\Dir2\".  This is the only way I got this to work.

Amy South Africa | Reply

5/26/2010 10:16:36 AM #

Amy

Oh, I see now that quotes are used in the example..  *blush*

Amy South Africa | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.6.1.0
Theme by Mads Kristensen

About the author

 

Ewald Hofman is MVP VS ALM and consultant at Avanade. His specialization is Application Lifecycle Management solutions based on Visual Studio ALM.

 

 

ClusterMap

Statistics

Statistics created at 09 Sep 2009

105 posts
130 comments
74 raters
128396 visit (351 per day)
19 users online

Recent comments

Comment RSS