TFS 构建定义模板 - 设置文件夹路径
下面的代码片段取自 TFS 构建定义文件。
<mtbwa:CopyDirectory Destination="[BuildDetail.DropLocation]" DisplayName="Copy Files to Drop Location" Source="[BinariesDirectory]..\Packages" />
关于源属性,我想使用现有变量将值设置为特定文件夹目标,然后向上一级。
如果变量 [BinariesDirectory] 等于“C:\TFS\Binaries”,我尝试将源设置为“C:\TFS\Packages”,但它只是不理解 ..\ 并且实际上会寻找位于“C:\TFS\Binaries..\Packages”的文件夹
如何向上移动文件夹级别?
提前致谢
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 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
意味着它提升到父文件夹,然后
使用 double \淹没到 PACKAGES
Means that it elavates to parent folder, then submerge to PACKAGES
use double \