简体   繁体   English

使用Visual Studio 2013在Entity Framework 5中无法启用enable-migrations

[英]enable-migrations not woking in Entity Framework 5 using Visual Studio 2013

I am trying to learn MVC4 with entity framework 5 using visual studio 2013 ultimate edition (Update 4) in code first approach, But in enable-migration command , i am getting following error 我正在尝试在代码优先方法中使用Visual Studio 2013 Ultimate Edition(Update 4)学习带有实体框架5的MVC4,但是在enable-migration命令中,我遇到了以下错误

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. System.IO.FileNotFoundException:无法加载文件或程序集“ Microsoft.VisualStudio.Shell,版本= 10.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a”或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。

Even I have installed vs_isoshell.exe as recommended by some people/website, still facing same issue. 即使我已经按照某些人/网站的建议安装了vs_isoshell.exe ,仍然遇到相同的问题。

It seems that it might be caused by .NET Framework 4 installation. 可能是由于.NET Framework 4安装引起的。 Follow these: 遵循这些:

  • Ensure to unable your anti-virus and some security software, perhaps, to close your firewall. 确保无法打开防病毒软件和某些安全软件,以关闭防火墙。
  • Try to clean your "%temp%" folder (Start Menu >> Run >> Type "%temp%") 尝试清理“%temp%”文件夹(“开始”菜单>>“运行” >>键入“%temp%”)
  • Reinstall .NET Framework 4 重新安装.NET Framework 4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 实体框架启用 - 迁移 - Entity Framework Enable-Migrations 在Visual Studio 2017中运行启用迁移时出错 - Error while running Enable-Migrations in Visual studio 2017 Visual Studio 2019 实体框架启用迁移错误 - Visual Studio 2019 Entity Framework Enable Migrations Error 如何使用Visual Studio实体框架代码优先迁移将发布部署到mysql数据库 - How to deploy publish to mysql database using visual studio entity framework code first migrations EF6 Enable-Migrations在ASP.NET Core(.NET Framework)中不起作用 - EF6 Enable-Migrations not working in ASP.NET Core (.NET Framework) 没有从DbContext类派生的上下文类,无法使用enable-migrations创建默认数据库 - Cannot create default database using enable-migrations without context class derived from DbContext class 运行enable-migrations后,configuration.cs中出现错误 - Error in configuration.cs after enable-migrations run 似乎无法使启用迁移工作成功安装但未添加 - cant seem to get enable-migrations working Successfully installed but not added 使用N层存储库模式Visual Studio项目启用迁移 - Enable migrations with N-Tier Repository pattern Visual studio project 无法使用Entity Framework 6.1.3在Visual Studio 2015中进行迁移 - Cannot do migration in Visual Studio 2015 using Entity Framework 6.1.3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM