简体   繁体   中英

TFS SourcesDirectory is null/empty when used in Expression Editor

I have a build definition which has two working folders specified. One of these has the following columns:

  • Status: Active
  • Source Control Folder: $/MyCompany/MyDivision/Solution2
  • Build Agent Folder: $(SourceDir)\\Solution2

I am trying to access this Build Agent Folder from within the Expression editor in TFS 2012?

I've tried SourcesDirectory but when it gets evaluated it is null/empty. Is there something specific I need to do to get SourcesDiretory to work in the expression editor? Or is there a better way to reference this specific build agent folder in it's entirety?

The SourcesDirectory and indeed the BinariesDirectory are not set till later in the build. They are not immediately available at the start of the build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM