简体   繁体   English

Windows Installer(MSI)不更新DLL

[英]Windows installer (msi) not updating DLLs

I've updated my project with new DLLs. 我已经用新的DLL更新了我的项目。 I've updated the Assembly version and the File version of these DLLs to new (higher) values. 我已经将这些DLL的Assembly版本和File版本更新为新(更高)的值。 I've rebuilt the setup project and increased the version of the setup and said yes to changing the Product code. 我已经重建了安装项目,并增加了安装版本,并同意更改产品代码。 I've added an assembly binding redirect to the app.config: 我已经将程序集绑定重定向添加到app.config:

<dependentAssembly>
                <assemblyIdentity name="LibVlcWrapper" publicKeyToken="F2C6CD8B56B49D4C" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-2.0.0.9" newVersion="2.0.1.0"/>
            </dependentAssembly>

.. Yet still when people are installing the update the new DLL isn't being copied over the old DLL. ..但是,当人们正在安装更新时,仍不会在旧DLL上复制新DLL。 Anyone got any idea why? 有人知道为什么吗? I keep getting error reports like: 我不断收到错误报告,例如:

Could not load file or assembly 'Implementation, Version=2.0.1.0, Culture=neutral, PublicKeyToken=be745ff6cbf41b62' or one of its dependencies. 无法加载文件或程序集'Implementation,版本= 2.0.1.0,Culture =中性,PublicKeyToken = be745ff6cbf41b62'或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference. 找到的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040) (来自HRESULT的异常:0x80131040)

The problem was that'd i'd already updated the DLL to the same version - doh! 问题是我是否已经将DLL更新到相同的版本-哎呀! Thanks Alexey for pointing out the debug generator. 感谢Alexey指出调试生成器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM