Where is the AdditionalReferencePath in TFS 2010?

by Ewald Hofman 9. February 2010 00:43

[UPDATE 6 april 2011]: There is now a post that tells you how you can modify the build process template to use a relative reference path: Customize Team Build 2010 – Part 16- Specify the relative reference path


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/18/2010 8:06:32 PM #

Rob

This worked nicely. Thanks for the tip.

Rob

Rob Australia |

5/26/2010 1: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 |

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

Amy

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

Amy South Africa |

11/2/2010 5:43:46 AM #

Andy

Thanks for this hint, I tried a lot of things before and searched for hours.

For those who are working locally with VS2008 (including Team Foundation Server access) like me: You won't find the “Process” step in the list on the left.
I logged in at our build server where VS2010 is installed and defined this build argument there. That was the fastest solution for me.

Andy Germany |

11/14/2010 7:57:05 PM #

pingback

Pingback from rogerfugate.wordpress.com

‘Harry Potter’ Screenwriter Says It’s ‘My Fault’ If Fans Hate ‘Deathly Hallows’ | Rogerfugate's Blog

rogerfugate.wordpress.com |

11/16/2010 2:50:14 AM #

Cpap Mask


Very interesting post, lots of good information. Thanks

Cpap Mask United States |

12/15/2010 5:58:34 AM #

pingback

Pingback from rogerfugate.wordpress.com

Getting Back To ?Normal? | Rogerfugate's Blog

rogerfugate.wordpress.com |

1/15/2011 1:57:19 AM #

pingback

Pingback from rogerfugate.wordpress.com

Owen Wilson Welcomes a Son | Rogerfugate's Blog

rogerfugate.wordpress.com |

2/22/2011 10:01:20 AM #

pingback

Pingback from rogerfugate.wordpress.com

Robert Plant And Alison Krauss Win Grammy Album Of The Year | Rogerfugate's Blog

rogerfugate.wordpress.com |

3/25/2011 1:53:02 AM #

pingback

Pingback from rogerfugate.wordpress.com

Zack Snyder Explains Choosing Henry Cavill For Superman Role | Rogerfugate's Blog

rogerfugate.wordpress.com |

4/10/2011 3:02:32 PM #

עורכי דין בתל אביב

This worked nicely. Thanks for the tip.

Rob

עורכי דין בתל אביב United States |

12/13/2014 9:24:03 PM #

pingback

Pingback from dhavalanswers.org

Visual Studio 2010 Reference paths and TFS | Yale Answers

dhavalanswers.org |

10/6/2016 4:31:15 AM #

pingback

Pingback from messi15.egejoy.xyz

How To Create Tfsbuild Proj Vs2010 | Information

messi15.egejoy.xyz |

Comments are closed

Powered by BlogEngine.NET 1.6.1.0
Theme by Mads Kristensen


ClusterMap

Widget Statistics not found.

There is an error in XML document (0, 0).X

Recent comments

Comment RSS