引用的组件' EntityFramework'找不到. [英] The referenced component 'EntityFramework' could not be found.

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

问题描述

因此我可以通过团队基础服务器从家里下载项目.我下载了该项目,由于该错误它将无法编译.警告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在构建过程中下载丢失的软件包" 选中

工具->选项...->包管理器->通用

2)已选择项目" 被选中

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

3)重建解决方案

编辑

为完整起见,我想补充一点,如果您正在使用CI系统(例如Jenkins)或在命令行上使用MSBuild,则需要选择 Enable NuGet Package Restore 来进行它可以工作:

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:

启用NuGet包还原http://docs.nuget.org/docs/Workflows/images/enable-package-restore.png

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

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