【发布时间】:2022-02-19 00:20:05
【问题描述】:
我很难摆脱构建警告:
warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved
特别是在 .NET 核心项目中。
在一个完整的 .NET 框架项目中,我会添加一些绑定重定向,因此我搜索了该问题并发现 this answer 建议将以下内容添加到 .csproj 文件中:
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
我已经这样做了,但无济于事 - 我仍然收到构建警告。我还能做什么?
【问题讨论】:
标签: c# msbuild .net-core dotnet-cli