Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions'

asp.net c# entity-framework-core visual-studio-2015

Question

Since I updated to Visual Studio 2015 update 3 and restored my Nuget packages I'm getting an

Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

error.In my project.json file I have the following Entity Framework packages defined

"EntityFramework.Core": "7.0.0-rc1-final",
"EntityFramework.Relational": "7.0.0-rc1-final",
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
"EntityFramework.Commands": "7.0.0-rc1-final"

Is there anything that I have to change that I'm not aware of?

1
0
7/18/2016 5:29:14 PM

Accepted Answer

The problem was that I had a EntityFramework.Core and Microsoft.EntityFrameworkCore package installed. I was able to recreate the project and restore all the packages without Microsoft.EntityFrameworkCore

2
7/18/2016 5:32:08 PM

Popular Answer

try putting this

  {
     "projects": [ "src", "test" ],
     "sdk": {
        "version": "1.0.0-rc1-final"
     }
  }

in global.json



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow