Skip to main content

Posts

Showing posts from May, 2011

Specifying Reference Paths in TFS 2010 build definition

While creating build definition using TFS 2008, we could specify the path(s) where the build server could look for the references. This was of great help as it avoided installing dependent assemblies in the GAC in the build server. It was easily done by editing the project file and adding <AdditionalReferencePath> element. In Team Foundation Server 2010 , the build definition are workflow based and if you are creating any build definition using default template, there is no option to specify the additional reference paths. Since, new template also supports the msbuild arguments, we have to specify the reference path as a build argument. For this we have to add "ReferencePath" as property to the msbuild arguments. Go to Team Explorer >> Build Defintion >> Edit Build Definition >> Process >> Advanced Section >> MSBuild Arguments and Add the following: /p:ReferencePath=”{File path}” We can specify multiple reference paths separated b