如何在 .NET Core 中进行程序集绑定重定向?
我发现这个问题被问了几次,但没有提供解决方案。情况微不足道。我有一个引用版本 10 中的程序集 A 的包。我想使用版本 12 中的程序集 A。在标准 .NET 中,它可以完美地与此配合使用:
<dependentAssembly>
<assemblyIdentity name="Microsoft.AnalysisServices.AdomdClient" publicKeyToken="89845dcd8080cc91" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-15.1.52.23" newVersion="12.0.0.0" />
</dependentAssembly>
在 Rena 的帮助下,添加
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
到项目文件有帮助。 .config 文件是使用正确的绑定重定向自动生成的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)