System.Runtime.Extensions requires a higher version of System.Runtime

I am working on one of these new projects, "Class Library (NuGet Package)" in Visual Studio. Everything went well until the other day there was an error in the assembly System.Runtime.Extensions:

Assembly 'System.Runtime.Extensions' with identity 'System.Runtime.Extensions,
Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' uses 'System.Runtime,
Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher
version than referenced assembly 'System.Runtime' with identity 'System.Runtime,
Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I checked on NuGet , and it is really true, System.Runtime.Extensionsrequires System.Runtimeat least 4.0.20.

I tried changing the following line in "dependencies"my section project.json:

"System.Runtime": "4.0.10-beta-23019",

before "4.0.20-beta-23019", but then he tells me that "type IOExceptionexists in both System.IO, and in System.Runtime."

What can I do to fix this?

Thanks.


EDIT: Just tried this on the new project of the new package, and it seems to fail too, so something is wrong.

+4
2

System.Runtime.Extensions:

"dependencies": {
    "System.Collections": "4.0.10-beta-23019",
    "System.Linq": "4.0.0-beta-23019",
    "System.Threading": "4.0.10-beta-23019",
    "System.Runtime": "4.0.10-beta-23019",
    "System.Runtime.Extensions": "4.0.0",
    "Microsoft.CSharp": "4.0.0-beta-23019"
},

, Environment.NewLine. D'.

0

.NET Core:

{
    "dependencies": { },

    "frameworks": {
        "dotnet": {
            "dependencies": {
                "Microsoft.CSharp": "4.0.0",
                "System.Collections": "4.0.10",
                "System.Linq": "4.0.0",
                "System.Runtime.Extensions": "4.0.10",
                "System.Threading": "4.0.10"
            }
        }
    }
}

dnxcore50 - .NET Core. dotnet.

+1

All Articles