Visual Studio Online Team Builds 上的 TFS 映射中的变量 [英] Variables in TFS Mappings on Visual Studio Online Team Builds

查看:23
本文介绍了Visual Studio Online Team Builds 上的 TFS 映射中的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用新的团队构建系统创建了一个 VSO 构建,该系统使用 TFS 作为存储库.我想在 Mappings -> Map value 中引入一个变量,但是当我这样做时,我收到了这个错误:

I have created a VSO build using the new Team build system which uses TFS as the Repository. I would like to introduce a variable into the Mappings -> Map value but when I do I get this error:

TF10122: The path '$/YourProject/${Build}' contains a '$' at the beginning of a path component. Remove the '$' and try again.

有没有办法做到这一点,还是我只需要对我的地图路径进行硬编码?

Is there a way to accomplish this or do I need to just hard code my Map path?

推荐答案

Repository 页面上的映射用于指定源代码控制文件夹,其中包含需要在构建定义中构建的项目.您可以通过单击省略号 (...) 按钮来设置它,但是,您不能在映射路径中包含变量.

Mappings on the Repository page are used to specify source control folder which contains projects that need to be built in the build definition. You can set it via clicking the Ellipsis (...) button, however, you can't include variables in the mapping path.

这篇关于Visual Studio Online Team Builds 上的 TFS 映射中的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆