I get this error when I build my project:
Severity Code Description Project File Line Error CS1705 Assembly 'EntityFramework.Core' with identity 'EntityFramework.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null' 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' TaaS.DataAccess..NET Platform C:_REPOSITORIES\taas-application\TaaS-WebApplication\TaaS.DataAccess\TaaSContext.cs 8
How can I update from System.runtime 4.0.10.0 to 4.0.20.0 ?
That is my project.json file:
{
"version": "1.0.0-*",
"description": "TaaS.DataAccess Class Library",
"authors": [ "LisaTatum" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"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",
"Microsoft.CSharp": "4.0.0-beta-23019",
"EntityFramework.SqlServer": "7.0.0-beta7",
"EntityFramework.Commands": "7.0.0-beta7",
"EntityFramework.Relational": "7.0.0-beta5"
},
"frameworks": {
"dotnet": { }
}
}
I went to the nuget package manager and searched for updateable packages and there was System.Runtime 4.0.20.0. I updated it and from now on everything is broken thanks to Microsoft. I know its beta but that should not happen:
Severity Code Description Project File Line
Warning Dependency specified was System.Runtime >= 4.0.20 but ended up with System.Runtime 4.0.10-beta-23019. TaaS.DataAccess C:\_REPOSITORIES\taas-application\TaaS-WebApplication\TaaS.DataAccess\project.json 13