开发者

Override Build Number and Revision in TFS 2010 build

I modified my project's AssemblyInfo.cs as following:

[assembly:AssemblyVersion("1.0.*")]
//[assembly:AssemblyFileVersion("1.0.0.0")]
开发者_如何学运维

This updated the dll file version. However, the Build Number and Revision number appear to be some random integers. Is it possible to specify the start point for Build/Revision number or override them while using TFS 2010 build ?

Thanks.


For the meaning of * I would take a look at What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion?

To increment automaticaly the build numbers I would implement the AssemblyInfoTask http://code.msdn.microsoft.com/AssemblyInfoTaskvers

I would follow the steps in http://www.ewaldhofman.nl/post/2010/05/13/Customize-Team-Build-2010-e28093-Part-5-Increase-AssemblyVersion.aspx to increment automaticaly the version in TFS 2010.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜