Entity Framework Migrations NuGet Error

asp.net-mvc c# entity-framework nuget visual-studio

Question

Using Visual Studio 2013 Express Preview for Web and Entity Framework 5

I'm getting the following error when I attempt to enable migrations:

PM> Enable-Migrations System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Shell, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Shell, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetProjectTypes(Project project) at System.Data.Entity.Migrations.Extensions.ProjectExtensions.IsWebSiteProject(Project project) at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetTargetDir(Project project) at System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName) at System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName) at System.Data.Entity.Migrations.EnableMigrationsCommand.<>c_DisplayClass2.<.ctor>b_0() at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)

Could not load file or assembly 'Microsoft.VisualStudio.Shell, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. PM>

Any suggestions?

1
13
9/12/2013 11:03:24 PM

Popular Answer

I had the same exact issue and finally solved it by installing "Microsoft Visual Studio 2012 Shell Redistributable Package (isolated)" (http://www.microsoft.com/en-us/download/details.aspx?id=30670).

14
9/23/2013 2:29:15 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow