程序集与清单不匹配
assembly does not match manifest
我有一个项目正在使用 Reactiveui (v 7.0) 和 Simple injector。 Reactiveui 使用 System.Reactive.Linq v2.2.5.0。在我的项目(使用 .net 4.5.1)中,我引用了 System.Reacive v3.0.0。我将以下内容添加到 App.config 来处理重定向:
<dependentAssembly>
<assemblyIdentity name="System.Reactive.Linq" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
但是当我 运行 它时,我得到以下错误:
Could not load file or assembly 'System.Reactive.Linq, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
我也试过 System.Reactive v3.1,但它给出了同样的错误。我该如何解决这个问题?
你确定 dll 是用那个密钥签名的吗?您可以在 visual studio 命令提示符下使用 sn.exe 工具进行检查。
我有一个项目正在使用 Reactiveui (v 7.0) 和 Simple injector。 Reactiveui 使用 System.Reactive.Linq v2.2.5.0。在我的项目(使用 .net 4.5.1)中,我引用了 System.Reacive v3.0.0。我将以下内容添加到 App.config 来处理重定向:
<dependentAssembly>
<assemblyIdentity name="System.Reactive.Linq" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
但是当我 运行 它时,我得到以下错误:
Could not load file or assembly 'System.Reactive.Linq, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
我也试过 System.Reactive v3.1,但它给出了同样的错误。我该如何解决这个问题?
你确定 dll 是用那个密钥签名的吗?您可以在 visual studio 命令提示符下使用 sn.exe 工具进行检查。