Using NuGet Package Manager console outside Visual Studio to run Entity Framework Migrations

Zasz picture Zasz · Oct 26, 2011 · Viewed 12.9k times · Source

Is there anyway to open NuGet Package Manager console outside Visual Studio ?

My objective is to run some migrations, which I created using EntityFramework.Migrations

Basically I want to run Update-Database –Verbose command in an environment which does not have visual studio, but does have PowerShell 2.0 and NuGet command line tool.

Answer

Scott Stafford picture Scott Stafford · May 23, 2012

The original posted answer was right at the time, but now (as of 4.3) there is a migrate.exe so you don't need nuget or powershell:

packages\EntityFramework.4.3.1\tools\migrate.exe

See http://blogs.msdn.com/b/adonet/archive/2012/02/09/ef-4-3-released.aspx