简体   繁体   中英

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. 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. 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.

在此处输入图片说明

It seems it was part of a known issue with VS2017 and netstandard2.0. After stumbling across this github release note page and installing this package, it solved my issue. NETStandard.Library.NETFramework , link to 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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