Here was the same problem, and it seems that the solution is to add the appropriate NuGet packages (s) to the project, which contains the functionality that was ported from Core. In particular, you will need serialization primitives , but I included the project.json file below, probably closer to what you want in terms of the actual configuration (dependencies, etc.).
This site also has a βsearch engineβ for .NET 5 packages, which is basically what you are doing here.
{ "supports": { "net46.app": {}, "uwp.10.0.app": {}, "dnxcore50.app": {} }, "dependencies": { "Microsoft.NETCore": "5.0.0", "Microsoft.NETCore.Portable.Compatibility": "1.0.0", "System.Collections": "4.0.10", "System.Collections.Specialized": "4.0.0", "System.Linq": "4.0.0", "System.Linq.Expressions": "4.0.10", "System.Linq.Queryable": "4.0.0", "System.Net.Requests": "4.0.10", "System.Runtime": "4.0.20", "System.Runtime.Serialization.Primitives": "4.0.10", "System.Runtime.Serialization.Json": "4.0.0", "System.Runtime.Serialization.Xml": "4.0.10" }, "frameworks": { "dotnet": { "imports": "portable-net452+win81" } } }
source share