Home » Visual Stuio » How to install Entity Framework in Visual Studio?

How to install Entity Framework in Visual Studio?

There are 2 ways to install Microsoft’s data access technology, Entity Framework:

Use NuGet Package Manager UI:

  1. In Visual Studio, click “Tools > NuGet Package Manager > Manage NuGet Packages for Solution…”
  2. Search for “Entity”
  3. Select “EntityFramework” and click “Install”

Use NuGet Package Manager Console:

  1. In Visual Studio, click “Tools > NuGet Package Manager > Package Manager Console”
  2. Enter the following command:

    Install-Package EntityFramework

It will automatically install the latest version available (It’s 6.2.0 as of the date I wrote this post).

I used Visual Studio 2013 in the screenshots above.

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.

2 thoughts on “How to install Entity Framework in Visual Studio?”

  1. Hello whenever i try to install this package i get the following error, is there a way to fix this ?
    Install-Package : Unable to find package ‘EntityFramework’
    At line:1 char:1
    + Install-Package EntityFramework
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

    Reply

Leave a Comment