我最近将一个自定义 DLL 文件更新到版本 1.0.3483.0,当我将该 DLL 文件包含在项目中时,它需要版本 1.0.3478.
更新项目中的 DLL 文件需要遵循哪些步骤?
删除并添加了DLL文件,卸载并重新加载了项目,但还是不行。
你应该可以使用 bindingRedirect 来使用指定的版本。
例如:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0"
newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
试试这个: