nuget 重新安装时多个 dll 引用失败

Multiple dll reference failure on nuget reinstall

当我为我的项目重新安装 nuget 时,我得到了多个 The referenced component <packagename> cannot be found。没有构建错误,我必须从项目中手动删除错误引用才能修复此问题 'annoyance'。有谁知道我为什么会这样? (见截图)。

我正在使用 visual studio 2017 和 .NET 4.6.1 并安装了 netstandard2.0。项目类型是 class 库,如果我查看 bin 文件夹,似乎每个错误引用都有一个额外的 xml 文件。

这似乎是 VS2017 和 netstandard2.0 的已知问题的一部分。在偶然发现 github 发行说明页面并安装此软件包后,它解决了我的问题。 NETStandard.Library.NETFramework、link 到 nuget - https://www.nuget.org/packages/NETStandard.Library.NETFramework/

https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0.0-preview2-known-issues.md#netstandard-20-and-the-net-framework