Welcome to MSDN Blogs Sign in | Join | Help

AdditionalReferencePath in Team Build

 

In Team Build, AdditionalReferencePath items (defined in the tfsbuild.proj) are used to specify the reference paths for resolving the external references. They are similar to HintPath. For example you can specify the lookup folder (C:\Common\Binaries) by defining the corresponding AdditionalReferencePath item. i.e

<AdditionalReferencePath Include="C:\Common\Binaries" />

How to make this reference path recursive?

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <Target Name="BeforeGet">


            <CreateItem Include=" C:\Common\Binaries\**\*.*" >
                  <Output ItemName=" AllFilesRecursively " TaskParameter="Include" />
            </CreateItem>
            <Message Text="@(AllFilesRecursively->'%(RecursiveDir)','&#x0D; &#x0A;')" /> 


            <CreateItem Include="@( AllFilesRecursively ->'%(RootDir)%(Directory)')">
                  <Output ItemName="AdditionalReferencePath" TaskParameter="Include" />
            </CreateItem>

            <Message Text="@(AdditionalReferencePath)" />


      </Target>

</Project>

 

 

Published Wednesday, January 04, 2006 2:31 PM by ManishAgarwal

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker