简体   繁体   English

Team Foundation Service构建版本控制

[英]Team Foundation Service build versioning

I want to add the Changeset and the BuildNr into my version number. 我想将Changeset和BuildNr添加到我的版本号中。 In example: 例如:
4.5. _Changeset_ . _BuildNr_

I have found some solutions for doing it through console and that exists some extensions to add to you an on-premises Team Foundation Server. 我已经找到了一些通过控制台执行此操作的解决方案,并且存在一些扩展以向您添加本地Team Foundation Server。

But I'm using the hosted Team Foundation Service so I can't add any extension, with Visual Studio 2012 Pro and I can't find any solution. 但是我正在使用托管的Team Foundation Service,因此无法使用Visual Studio 2012 Pro添加任何扩展,也找不到任何解决方案。 Is it possible? 可能吗?

Actually you do not need to add extensions to the tfs through console (even though this is possible). 实际上,您不需要通过控制台向tfs添加扩展名(即使可能的话)。 Working with extensions in TFS 2012, just like the Team Foundation Service works exactly like in TFS 2010. You have to checkin the extension assembly and customize your build templates. 就像Team Foundation Service在TFS 2010中一样,在TFS 2012中使用扩展。您必须签入扩展程序集并自定义构建模板。 This should be also possible with VS 2012 Professional (at least I remember, I did this with VS 2010 Pro). 使用VS 2012 Professional也应该可以做到这一点(至少我记得,我是使用VS 2010 Pro完成的)。

Take a look at this community post. 看看这个社区帖子。 Also you might read this blog post that handles customization of Team Build. 您也可以阅读此博客文章该文章处理团队构建的自定义。

Last but not least you will find a complete solution on CodePlex . 最后但并非最不重要的一点是,您将在CodePlex上找到完整的解决方案。 You can completely set it up from Visual Studio's integrated Team Explorer. 您可以从Visual Studio的集成团队资源管理器中完全设置它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM