How do I check if an assembly reference exists in the GAC?

c#, entity-framework, gac, reference, visual-studio-2010

Solution

The GAC path is `C:\Windows\assembly`.

However, you resolve your error, you must use NuGet to install the EntityFramework package (or do it manually but that's harder and doesn't allow you to upgrade).

- Install NuGet if you haven't already

- Right click on your project and "Manage NuGet packages"

- Search for EntityFramework

- Install

Later, you can use the same dialog under "Updates" to install updated versions of the EntityFramework.

In the case that you need to install 4.1.0.0 in particular because a third-party lib is using it and won't work with anything higher, install the appropriate package version from here.

Problem

My EntityFramework reference has a yellow triangle warning left of it, and my project says it's missing. 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. How do I resolve this problem?

Original source