gpt4 book ai didi

c# - 引用装配错误

转载 作者:太空狗 更新时间:2023-10-29 22:22:37 27 4
gpt4 key购买 nike

我已经实现了 RoleProvider 类,在那里我创建了位于另一个程序集中的 Domain 类对象,我的程序集引用了那个。

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

我该如何修复这个错误?

最佳答案

打开 visual studio 并转到工具栏打开 Nuget 包管理器并打开 nuget 包管理器控制台并安装 Entity Framework 只需将其粘贴到控制台窗口中即可:

Install-Package EntityFramework

关于c# - 引用装配错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21188454/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com