我正在尝试通过 AssemblyInfo [assembly: AssemblyVersion("2.0.*")]
合并自动化版本。我在生成 MSI 文件的设置中将 Version="!(bind.FileVersion.FILEEXE)"
添加到 Product.wxs。根据我的阅读,MSI 在 Bootstrapper 项目的 Bundle.wxs 中没有可供我访问的版本属性。如何在 Bootstrapper 中设置版本以自动与我的应用程序版本同步?
最佳答案
在您的 Bootstrap 的 <Bundle>
中元素使用属性 Version="!(bind.packageVersion.YourPackageName)"
在哪里YourPackageName
是 MsiPackage
的 ID在您希望使用的属性的链中。
您还可以通过这种方式绑定(bind)所有其他属性,捆绑名称、制造商等。
引用(靠近底部,包属性)http://wixtoolset.org/documentation/manual/v3/overview/light.html
关于c# - Wix Bootstrapper 使用 Setup MSI 自动进行版本控制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40529880/