开发者

TFS Build Definition Templates - Set folder path

开发者 https://www.devze.com 2023-03-11 15:37 出处:网络
The snippet below is taken from a TFS build definition file. <mtbwa:CopyDirectory Destination=\"[BuildDetail.DropLocation]\" DisplayName=\"Copy Files to Drop Location\" Source=\"[BinariesDirectory

The snippet below is taken from a TFS build definition file.

<mtbwa:CopyDirectory Destination="[BuildDetail.DropLocation]" DisplayName="Copy Files to Drop Location" Source="[BinariesDirectory]..\Packages" />

Regarding the source attribute, I want to set the value to a particular folder destination, using an existing variable and then going up one level.

If the variable [BinariesDirectory] was equal to "C:\TFS\Binaries", I am trying to set the source to "C:\TFS\Packages", but it just 开发者_JAVA百科does not understand ..\ and will actually look for a folder at "C:\TFS\Binaries..\Packages"

How can I go up a folder level?

Thanks in advance


Means that it elavates to parent folder, then submerge to PACKAGES

use double \

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号