我怎样才能设置WiX的安装程序的版本了短路电流生成版本? [英] How can I set the WiX installer version to the curent build version?

查看:152
本文介绍了我怎样才能设置WiX的安装程序的版本了短路电流生成版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个应用程序及其WiX的安装和使用Subversion把它的版本控制之下。当WiX的安装程序生成我想它的版本号是应用程序的当前版本的版本。我如何做到这一点?我用C#来code中的应用。

I wrote an application and its WiX installer and put it under version control using subversion. When the WiX installer builds I want its version number to be the current build version of the application. How do I accomplish this? I used c# to code the application.

N.B。我使用CCNET构建这个项目

N.B. I am using ccnet to build this project

推荐答案

您可以使用产品/ @版本=!(bind.FileVersion.FileId)(替换 FILEID 编号从中你想要得到的版本号文件)和light.exe将填充由引用的文件的版本值 FILEID

You could use Product/@Version="!(bind.FileVersion.FileId)" (replace FileId with the Id of the file from which you'd like to get the version number) and light.exe will populate the value with the version of the file referenced by the FileId.

这篇关于我怎样才能设置WiX的安装程序的版本了短路电流生成版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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