由于您使用的是.net框架库中的项目,因此自动生成的绑定重定向存在问题(可能会在即将发布的15.3更新/ 2.0
.net核心CLI中解决)。要解决此问题,请将其添加到
cpsroj文件中(最好在文件的任何
<import>元素之前,
.targets如果存在):
<PropertyGroup> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType></PropertyGroup>
这应该强制MSBuild创建/更新
YourProject.dll.config包含必要的绑定重定向的文件。



