aBe*_*mer 8 entity-framework ef-migrations visual-studio-2013
更新到Visual Studio 2013后,我收到运行Entity Framework迁移的错误.
PM> update-database
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.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
Run Code Online (Sandbox Code Playgroud)
谁知道怎么解决这个问题?
aBe*_*mer 11
我能够使用Microsoft Visual Studio 2012 Shell(隔离)可再发行组件解决此问题.安装包后,update-database工作正常.
PM> update-database
Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
No pending code-based migrations.
Running Seed method.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6340 次 |
| 最近记录: |