TFS,将构建号作为变量添加到代码中。 [英] TFS, add the build number into the code as variable.

查看:77
本文介绍了TFS,将构建号作为变量添加到代码中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手使用TFS,以便能够从我们的应用程序中的信息中获取内部版本号,因此我们可以在应用程序的帮助部分中显示它。它的格式如下  $(date:yyyyMMdd)$(rev:.r)_ $(SourceBranchName)。但是如何在代码中添加变量
并在TFS构建期间填充它。我假设我将它添加到"过程变量"中。部分。但是怎么样?以及如何在代码中调用它。



谢谢

解决方案

这是您可能需要发布的地方,因为MSDN论坛没有流量。


https://stackoverflow.com/questions/tagged/tfs


Hi, I'm new to using TFS like to be able to get the build number from the info in our app, so we can show it in the help section in the app. It's formatted like this $(date:yyyyMMdd)$(rev:.r)_$(SourceBranchName). But how do I add a variable in the code, and have it populated during the build by TFS. I assume I add it in the "process variables" section. But how? and how too call it in the code.

Thanks

解决方案

It's where you may have to post, since MSDN forum has no traffic.

https://stackoverflow.com/questions/tagged/tfs


这篇关于TFS,将构建号作为变量添加到代码中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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