使用CCNetLabel通过CruiseControl.NET设置AssemblyVersion和PublishVersion [英] Using CCNetLabel to set AssemblyVersion and PublishVersion with CruiseControl.NET

查看:72
本文介绍了使用CCNetLabel通过CruiseControl.NET设置AssemblyVersion和PublishVersion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用CruiseControl.NET部署单击一次"应用程序(构建和发布).我找不到在哪里可以使用CCNetLabel设置我的AssemblyVersion和/或PublishVersion.我会接受其他解决方案,该解决方案在每个CruiseControl.NET部署(实时和开发部署)中都允许使用唯一的版本号.

I am trying to deploy a Click Once application (build and publish) using CruiseControl.NET. I cannot find out where I can use the CCNetLabel to set my AssemblyVersion and/or PublishVersion. I would accept other solutions that would allow a unique version number per CruiseControl.NET deployment (Live and Development deployments).

推荐答案

您需要在AssemblyInfo.cs中进行编译之前进行设置,如其他答复者所指出的那样.Assembly Version Labeller很棒,但不适用于svn.如果您使用svn,则可能需要查看 svn修订标签器.

You need to set it before the compile in your AssemblyInfo.cs as the other answerer points out. The Assembly Version Labeller is great, but it doesn't work with svn. If you use svn, you might want to have a look at the svn revision labeller.

一旦标签生成正确,就可以在创建/编辑AssemblyInfo.cs文件时在CC或Nant脚本中使用该标签.如果您使用的是Nant,那么asminfo任务将为您提供很大的帮助.SO搜索会很好,但您可能还想看看

Once you get the label generating properly, you can use that in your CC or Nant script when creating/editing the AssemblyInfo.cs file. If you're using Nant, then the asminfo task will be of great help for you. An SO search would be good, but you might also want to have a look at this article, which should be very helpful.

这篇关于使用CCNetLabel通过CruiseControl.NET设置AssemblyVersion和PublishVersion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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