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

查看:67
本文介绍了找不到引用的组件“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天全站免登陆