问题描述
我在使用 VS2010 编译的应用程序安装程序时遇到问题.
I have a problem with an application installer compiled in VS2010.
1.1 版安装正常,我得到了 .exe、.config 和引用的程序集.
Version 1.1 installs fine, I get the .exe, .config and referenced assemblies.
我先卸载,然后安装 1.2.同样,一切都按预期进行.
I uninstall, then install 1.2. Again everything works as expected.
卸载,重新安装1.1.
Uninstall, the install 1.1 again.
接下来我安装 1.2,安装程序更新引用的组件(我可以看到修改日期不同)但不是 .exe 或 .config.
Next I install 1.2, the installer updates the referenced assmeblies (I can see the modified date is different) but not the .exe or the .config.
我在安装项目中缺少什么配置吗?
Is there something I'm missing config wise in the setup project?
谢谢
山姆
推荐答案
您需要阅读:
注意:重要的不是AssemblyVersion 属性,而是AssemblyFileVersion 属性.前者由 GAC 和强名称合同使用,而后者映射到 Windows Native FileVersion 结构.
Note: it's not the AssemblyVersion attribute that is important rather the AssemblyFileVersion attribute. The former is used by the GAC and Strong Name contracts while the later maps to the Windows Native FileVersion structure.
这篇关于VS 2010 安装项目 - 升级时安装程序不更新 .exe 或 .config 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!