引用的组件“的EntityFramework'不能被发现。 [英] The referenced component 'EntityFramework' could not be found.

查看:722
本文介绍了引用的组件“的EntityFramework'不能被发现。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这样的IM在家来自Team Foundation Server的工作下载项目。我下载的项目,因为错误的它不会编译。警告2引用的组件的EntityFramework'不能被发现。任何人都可以在我怎样才能得到实体框架的工作提供指导。我安装的NuGet包。

So im downloading a project at home from work over team foundation server. I download the project and it won't compile because of the error. Warning 2 The referenced component 'EntityFramework' could not be found. Could anyone offer guidance in how I can get entity framework to work. I installed nuget package.

三江源

推荐答案

我建议你检查:

1)允许的NuGet构建过程中下载缺失的软件包勾选

工具 - >选项​​... - >包管理器 - >常规

Tool --> Options... --> Package Manager --> General

2)的项目选择了勾选

解决方案资源管理器 - >该解决方案/项目右击 - >管理NuPackages

Solution Explorer --> right-click on the solution/project --> Manage NuPackages

3)重建解决方案

修改

有关完整性我想补充一点,如果你是一个CI系统(如詹金斯)工作,或者你在命令行中使用的MSBuild,你需要选择的启用的NuGet包还原的使它工作方式:

For completeness I would like to add that if you are working with a CI system (e.g. Jenkins) or you are using MSBuild on the command line, you need to select Enable NuGet Package Restore to make it work:

这篇关于引用的组件“的EntityFramework'不能被发现。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆