团队城市的汇编版本控制和Dll版本控制 [英] Assembly Versioning and Dll Versioning in Team City

查看:187
本文介绍了团队城市的汇编版本控制和Dll版本控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要这些版本的格式

像这样.. {Major}。{Minor}。{Build}。{patch}

like this.. {Major}.{Minor}.{Build}.{patch}

如何在团队城市的装配信息修补程序中设置这个?

how to set this in the assembly info patcher in team city?

,以便每次会自动增加版本它建立...

so that it will automatically increment the versions for each time it builds...

我想要一些指导和帮助在这个...?

i want some guidance and help in this...?!?

推荐答案

TeamCity可以使用AssemblyInfo Patcher 构建功能为您提供版本装配。要利用这一点:

TeamCity can version assemblies for you with the AssemblyInfo Patcher build feature. To take advantage of this:


  1. 创建一个名为的主要参数%Major.Minor%。手动设置为某些值,例如 1.0

  2. 在常规设置选项卡上,设置 Build number格式%Major.Minor%。%build.vcs.number%。%build.counter%

  3. 构建步骤标签上,滚动到页面底部的其他构建功能。添加装配信息修补程序构建步骤。它将默认使用您在步骤2中定义的%system.build.number%

  1. Create a build parameter called %Major.Minor%. Set this manually to some value, e.g. 1.0.
  2. On the General Settings tab, set the Build number format to %Major.Minor%.%build.vcs.number%.%build.counter%.
  3. On the Build Steps tabe, scroll to the Additional Build Features at the bottom of the page. Add an Assembly Info Patcher build step. It will default to using the %system.build.number%, which you've defined in step 2.

这将导致您的所有程序集都使用%system.build.number%进行版本控制,其中包括Major和Minor版本, VCS修订版本和TeamCity的增量版本号。

This will result in all of your assemblies being versioned with the %system.build.number%, which includes the Major and Minor version, the VCS revision, and TeamCity's incremental build number.

这篇关于团队城市的汇编版本控制和Dll版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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