TFS2015中的构建在哪里设置$(System.DefaultWorkingDirectory)? [英] Where is $(System.DefaultWorkingDirectory) set for builds in TFS2015?

查看:308
本文介绍了TFS2015中的构建在哪里设置$(System.DefaultWorkingDirectory)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试修改此变量的值,因为它当前指向在代理上运行的任何版本的源文件夹,而不是该版本的根。

I'm trying to modify the value of this variable as it currently points to the source folder of whatever build gets run on the agent instead of the root of the build.

有人知道我可以在哪里修改此变量吗?我已经查看了代理程序的配置.json文件,但没有找到任何相关的文件。

Does anyone know where I can modify this variable? I've looked at the agent's configuration .json file but didn't find anything relevant.

推荐答案

您可以定义 $(System.DefaultWorkingDirectory)在构建定义的变量选项卡中。

You can define $(System.DefaultWorkingDirectory) in Variables tab in Build Definition.

如果我定义了一个新的,我刚刚进行了快速测试值为 $(System.DefaultWorkingDirectory),则任务 $(System.DefaultWorkingDirectory)的输出为新值:

I just had a quick test, if I define a new value to $(System.DefaultWorkingDirectory), the output in the task for $(System.DefaultWorkingDirectory) will be the new value:

这篇关于TFS2015中的构建在哪里设置$(System.DefaultWorkingDirectory)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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