我遇到了一个困难,就是如何消除构建警告:
warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved
特别是在.NET Core项目中。
在完整的.NET框架项目中,我会添加一些绑定重定向,因此我在网上搜索该问题并找到了这个答案,建议将以下内容添加到.csproj文件中:
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
我已经尝试过这个方法,但是无济于事 - 我仍然收到构建警告。还有其他办法吗?