Error referencing Net Standard from Net 4.6.1 / 4.7 Error referencing Net Standard from Net 4.6.1 / 4.7 asp.net asp.net

Error referencing Net Standard from Net 4.6.1 / 4.7


I had a similar problem and I solved it by removing the System.Runtime reference from the project and install it via Nuget (Net Standard compatible). It wasn't the only package that had problems (other example, System.Net.Http). Also, if you have multiple projects in your solution, you should install Net Standard on every one of them.


The .NET Standard docs here and here have conflicting info when it comes to .NET Framework. I suspect the latter is the most current.

Basically, it indicates that .NET Framework is not supported on .NET Standard 1.6 unless you have the .NET Core 2.0 SDK installed.

Alternatively, .NET Standard 1.5 and below are supported with .NET Core 1.0 SDK installed.


After a long converting process, which I described hereI have the experience: you have to install the NuGet package NETStandard.Library also in your main project (in your webapp .net 4.6.1). It will install a plenty of packages.

I use NETStandard.Library version 1.6.1.

If you use System.Runtime.Serialization in your netstandard code, you have to install System.Runtime.Serialization.Primitives and System.Runtime.Serialization.Xml or .Json in the main project, too.

And also all other references of the netstandard project should be referenced in the main project, too.