English 中文(简体)
我如何检查GAC中是否存在组装参考?
原标题:How do I check if an assembly reference exists in the GAC?

我的实体框架参考书中还剩下一个黄色三角形警告 我的项目说它不见了

Could not resolve this reference. Could not locate the assembly "EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

我如何解决这个问题?

最佳回答

GAC 路径是 C:Windowsassassembly

然而,您要解决错误, 您必须使用 NuGet 安装“ 实体框架” 软件包( 或者手动操作, 但难度更大, 不允许升级 ) 。

  1. Install NuGet if you haven t already
  2. Right click on your project and "Manage NuGet packages"
  3. Search for EntityFramework
  4. Install

稍后, 您可以在“ 更新” 下使用相同的对话框来安装实体框架的更新版本 。

如果您需要安装4.1.0.0, 特别是因为第三方解放组织正在使用该软件, 并且不会使用任何更高的软件, 请从

问题回答

运行安装器。

http://www.microsoft.com/en-au/download/details.aspx?id=8363" rel="no follow" >http://www.microsoft.com/en-au/download/details.aspx?id=8363

我也有同样的问题,它现在已经修好了。实体框架图纸从GAC丢失了,在安装器运行后,它现在没有了。

(您可以通过打开 GAC c: 窗口组装并查看是否列出来验证 GAC 中丢失的相片 。 )





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...