简体   繁体   English

重新安装nuget时出现多个dll参考失败

[英]Multiple dll reference failure on nuget reinstall

I am getting multiple The referenced component <packagename> cannot be found when i do a nuget reinstall for my project. 我越来越多当我为我的项目重新安装nuget时, The referenced component <packagename> cannot be found There are no build errors and i have to manually delete the erroneous references from the project to fix this 'annoyance'. 没有构建错误,我必须从项目中手动删除错误的引用才能解决此“烦恼”。 Does anyone know why Im this is happening? 有谁知道我为什么要这样吗? (see screenshot). (请参见屏幕截图)。

I am using visual studio 2017 and .NET 4.6.1 and netstandard2.0 is installed. 我正在使用Visual Studio 2017和.NET 4.6.1,并安装了netstandard2.0。 The project type is class library and If i look in the bin folder, it seems there is an additional xml file for each erroneous reference. 项目类型是类库,如果我在bin文件夹中查找,似乎每个错误引用都有一个附加的xml文件。

在此处输入图片说明

It seems it was part of a known issue with VS2017 and netstandard2.0. 看来这是VS2017和netstandard2.0已知问题的一部分。 After stumbling across this github release note page and installing this package, it solved my issue. 跨过该github发行说明页面并安装此软件包后,它解决了我的问题。 NETStandard.Library.NETFramework , link to nuget - https://www.nuget.org/packages/NETStandard.Library.NETFramework/ NETStandard.Library.NETFramework ,链接到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 https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0.0-preview2-known-issues.md#netstandard-20-and-the-net-framework

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM