无法加载类型"Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions" [英] Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions'
问题描述
自从我更新到Visual Studio 2015 Update 3并还原了Nuget软件包后,我得到了
Since I updated to Visual Studio 2015 update 3 and restored my Nuget packages I'm getting an
无法加载类型'Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions'来自程序集"Microsoft.Extensions.DependencyInjection.Abstractions"版本= 1.0.0.0,文化=中性,PublicKeyToken = adb9793829ddae60'.
Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
错误.在我的project.json文件中,我定义了以下实体框架包
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?
推荐答案
问题是我安装了 EntityFramework.Core
和 Microsoft.EntityFrameworkCore
程序包.我能够重新创建项目并还原所有包,而无需 Microsoft.EntityFrameworkCore
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
这篇关于无法加载类型"Microsoft.Extensions.DependencyInjection.ServiceProviderExtensions"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!