如何从TFS在线构建版本获取程序集版本 [英] How to get Assembly version from TFS online Build Version

查看:85
本文介绍了如何从TFS在线构建版本获取程序集版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我要求我的应用程序.exe文件版本应与TFS在线版本号匹配。我已经按照下面给出的链接并实现了它,但不知道为什么我的应用程序.exe文件没有从TFS在线获取版本号Build
定义构建格式。我已执行下面链接中给出的powershell脚本为"Pre-Build Script"

I have a requirement that My application .exe file version should match with TFS online Build Number. I have followed below given links and implemented it but don't know why my application .exe file is not picking up the version number from TFS online Build Definition Build Format. I have executed powershell script given in the link below as "Pre-Build Script"

http://geeks.ms/blogs/jlsoria/archive/2014/02/17/get -your-binaries -versioned-in-less-than-5-minutes-with-tfs-build-2013.aspx

http://geeks.ms/blogs/jlsoria/archive/2014/02/17/get-your-binaries-versioned-automatically-in-less-than-5-minutes-with-tfs-build-2013.aspx

http://www.colinsalmcorner.com/post / matching-binary-version-to-build-number-version-in-tfs-2013-builds

http://www.colinsalmcorner.com/post/matching-binary-version-to-build-number-version-in-tfs-2013-builds

从上面的屏幕截图中可以看出,Build Definition正在使构建版本正确但版本正确没有被.exe文件选中。

From above screenshot it's clear that Build Definition is getting the build version right but the version is not picked by .exe file.

你能不能帮我解决我做错了什么。感谢您的帮助。

Could you guys please help me what I am doing wrong. Thanks for help.

推荐答案

Hello Vishwajeet,

请查看以下链接,以便更深入地了解版本控制。

https://social.msdn.microsoft.com/Forums/vstudio/en-US/7aa464e6-d5ec-4788 -8aab-e73990e435fa / tfs-2010-build-number-and-assemblyversioninfo?forum = tfsbuild

https://social.msdn.microsoft.com/Forums/vstudio/en-US/f9f03be1 -1a6b-4392-966b-8555e7bc5d43 /如何对附加版本号码到所述-DLL-或-EXE-文件 - ?论坛= tfsbuild

http://www.wintellect.com/devcenter/jrobbins/tfs-build-numbers-file-version-now-with-hosted-tfs-build-support

http://www.colinsalmcorner.com/post/matching-binary-version-to-build-number-version-in-tfs-2013-builds

希望它有所帮助。

问候,


Sunil.HP

免责声明

此回复包含对第三方万维网站点的引用。微软提供此信息是为了方便您.Microsoft
不控制这些站点和尚未对在这些网站上发现的任何软件或信息进行测试;因此,Microsoft无法就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用任何软件时都存在固有的
危险在互联网上,微软提醒您在从互联网上检索任何软件之前确保您完全了解风险。


这篇关于如何从TFS在线构建版本获取程序集版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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