Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Wix引导程序使用安装MSI进行自动版本控制_C#_Wix - Fatal编程技术网

C# Wix引导程序使用安装MSI进行自动版本控制

C# Wix引导程序使用安装MSI进行自动版本控制,c#,wix,C#,Wix,我正试图通过AssemblyInfo[assembly:AssemblyVersion(“2.0.*”)]合并自动化版本。我已将Version=“!(bind.FileVersion.FILEEXE)”添加到我的安装程序中生成MSI文件的Product.wxs中。根据我的阅读,MSI在Bootstrapper项目的Bundle.wxs中没有可供我访问的version属性。如何在引导程序中设置版本以自动与应用程序的版本同步?在引导程序的元素中使用属性version=“!(bind.packageV

我正试图通过AssemblyInfo
[assembly:AssemblyVersion(“2.0.*”)]
合并自动化版本。我已将
Version=“!(bind.FileVersion.FILEEXE)”
添加到我的安装程序中生成MSI文件的Product.wxs中。根据我的阅读,MSI在Bootstrapper项目的Bundle.wxs中没有可供我访问的version属性。如何在引导程序中设置版本以自动与应用程序的版本同步?

在引导程序的
元素中使用属性
version=“!(bind.packageVersion.YourPackageName)”

其中,
YourPackageName
是要从中使用属性的链中的
MsiPackage
的Id

您还可以通过这种方式绑定所有其他属性,如bundle name、manufacturer等


参考(靠近底部,包属性)

不幸的是,我已经尝试过了。在my Product.wxs中,我有
Version=“!(bind.FileVersion.EXE)”
,其中EXE是文件的ID。在我的包中,我有
Version=“!(bind.packageVersion.Setup)”
,其中Setup是由产品项目编译的MSI的ID。