参考装配误差 [英] Reference to assembly error

查看:204
本文介绍了参考装配误差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了RoleProvider类中,有我创建的域类对象,它是在另一个程序集,我的组件具有引用的那一个。

I've implemented the RoleProvider class, there I created Domain class object which is in another assembly, my assembly has a reference to that one.

错误3类型System.Data.Entity.DbContext'是一个定义   未引用的程序集。您必须添加一个引用组件   的EntityFramework,版本= 6.0.0.0,文化=中立,   公钥= b77a5c561934e089。 D:\的Visual Studio 2013 \组   06 \ G06_Store \ Store.Facade \ StoreRoleProvider.cs 17 24 Store.Facade

Error 3 The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. D:\Visual Studio 2013\Group 06\G06_Store\Store.Facade\StoreRoleProvider.cs 17 24 Store.Facade

我该如何解决这个问题?

How can I fix this error?

推荐答案

打开Visual Studio,并转到工具栏开放的NuGet包管理系统和开放的NuGet包管理器控制台,安装实体框架刚刚过去的这个O =在控制台窗口中,

open visual studio and go to tools bar open Nuget package manager and open nuget package manager console and install Entity framework just past this o=in the console window,

安装,包装的EntityFramework它会为你工作。

Install-Package EntityFramework it will work for you.

这篇关于参考装配误差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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