TFS 2013 environment variables always empty

回眸只為那壹抹淺笑 提交于 2019-12-25 14:24:20

问题


I've defined custom arguments in my xaml build script and provided values:

Then In my build I get the following instead of actual TF_BUILD_BUILDDIRECTORY. This is the string that writes: "dotCover Report..."

String.Format("dotCover Report Path: {0}\{1}", DotCoverReportPath, DotCoverReportFileName)

It's not translating to actual BUILDDIRECTORY path. What am I doing wrong? I've hit "refresh" several times and still no go. I wanted to get "C:\temp..." etc


回答1:


Possible duplicate with this case TFS How to GetEnvironmentVariable value. You can't use $TF_BUILD_BUILDDIRECTORY in a custom build process.

Please refer more detailed info about how to use it from this blog Using Environment Variables in Visual Studio 2013 and TFS 2013



来源:https://stackoverflow.com/questions/34863549/tfs-2013-environment-variables-always-empty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!