As I need to import a library targeting .NET Standard 2, I had upgraded my library to .NET 4.7.1, as I understood from this MS video that should avoid this issue: https://www.youtube.com/watch?v=u67Eu_IgEMs
However, adding .NET standard now results in dozens of System.xxx references, rather than a single reference to .NET Standard (as per the video).
Worse still, several of the references have been added but the underlying file appears to be missing generating warnings, e.g.
Warning The referenced component 'Microsoft.Win32.Primitives' could not be found.
Warning The referenced component 'System.IO.FileSystem' could not be found.
Warning The referenced component 'System.Security.Cryptography.X509Certificates' could not be found.
Warning The referenced component 'System.Globalization.Calendars' could not be found.
I even re-created the demo project in video and got the same result - no single reference to .NET Standard, lots of DLL references instead.
Warning The referenced component 'System.Security.Cryptography.Encoding' could not be found.
Warning The referenced component 'System.Security.Cryptography.Primitives' could not be found.
Warning The referenced component 'System.IO.Compression.ZipFile' could not be found.
Warning The referenced component 'System.Console' could not be found.
I've tried a NUGET update-package -reinstall
and downgraded and upgraded to .NET standard 2.0 and 2.0.1 as well
packages.config
or package references? – Durandpackages.config
@LexLi – Niphablepsiapackages.config
but this then broke my ASP.NET application because packageReference does not support older Content packages - likeJQuery
orBootstrap
or all my TypeScript definition files. I tried to migrate but it just caused even more problems. The new approaches are nice but backward compatibility is pretty much awful. – Niphablepsia