Installation 使用WIX自动增加生成编号
我正在使用WIX工具为我们的项目创建安装文件 我想要动态(增量)版本号。谁能给我指路Installation 使用WIX自动增加生成编号,installation,wix,version,Installation,Wix,Version,我正在使用WIX工具为我们的项目创建安装文件 我想要动态(增量)版本号。谁能给我指路 请不要提供像1.0.0这样的解决方案。*因为这会在最后给出任何动态数字。我希望它像1.0.0.1、1.0.0.2、1.0.0.3等那样递增,…您不能用WiX本机实现这一点 但是,您可以将您的版本定义为一个变量。e、 g: <Product Id="*" UpgradeCode="$(var.Property_UpgradeCode)" Name="!(loc.Appli
请不要提供像1.0.0这样的解决方案。*因为这会在最后给出任何动态数字。我希望它像1.0.0.1、1.0.0.2、1.0.0.3等那样递增,…您不能用WiX本机实现这一点 但是,您可以将您的版本定义为一个变量。e、 g:
<Product Id="*"
UpgradeCode="$(var.Property_UpgradeCode)"
Name="!(loc.ApplicationName)"
Language="!(loc.Property_ProductLanguage)"
Version="$(var.version)"
Manufacturer="!(loc.ManufacturerName)" >
然后您可以在命令行上输入版本号。下面是一个使用
然后,您只需以处理应用程序的相同方式处理版本号:)您可以使用version类
乙二醇
没有一个
增量
增量
重置
在上面的部分中,我将设置发布类型的值。不幸的是,这些似乎只在代码中记录
CruisControl.Net正在外部设置ReleaseType
如果我们有一个“内部”的ReleaseType,那么小增量没有完成,但是构建编号被碰撞,如果没有,那么我们增加小编号并重置构建编号
Version元素将以“1.0.1.3”的形式从Version.txt读取版本,对其执行一些操作,然后将其读入一些变量中,这些变量就是输出位(我想!)的内容,用于修改部件信息的位中您已经使用了连续集成工具吗?如果是这样的话,如果你告诉我们哪一个会更容易;如果不是,那么你可能想先调查一下。TeamCity在处理构建数量方面非常有效。
<candle
out="${dir.obj}\"
rebuild="true"
extensions="WixUIExtension;WixNetFxExtension">
<defines>
<define name="ProcessorArchitecture" value="${release.platform}" />
<define name="SourceDir" value="${dir.source}" />
<define name="version" value="${version}" />
<define name="releasetype" value="${release.type}" />
<define name="Language" value="${language}" />
</defines>
<sources>
<include name="*.wxs" />
</sources>
</candle>
<PropertyGroup>
<MinorIncrement Condition=" '$(ReleaseType)' == 'Internal' ">None</MinorIncrement>
<MinorIncrement Condition=" '$(MinorIncrement)' == '' ">Increment</MinorIncrement>
<BuildIncrement>Increment</BuildIncrement>
<BuildIncrement Condition=" '$(MinorIncrement)' == 'Increment' ">Reset</BuildIncrement>
</PropertyGroup>
<Target Name="BumpVersion">
<Version VersionFile="version.txt" MinorType="$(MinorIncrement)" BuildType="$(BuildIncrement)">
<Output TaskParameter="Major" PropertyName="Major"/>
<Output TaskParameter="Minor" PropertyName="Minor"/>
<Output TaskParameter="Build" PropertyName="Build"/>
<Output TaskParameter="Revision" PropertyName="Revision"/>
</Version>
<AssemblyInfo CodeLanguage="CS" OutputFile="VersionInfo.cs" AssemblyVersion="$(Major).$(Minor).$(Build).$(Revision)" AssemblyFileVersion="$(Major).$(Minor).$(Build).$(Revision)"/>
<Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/>
</Target>