我如何...在代码第一种方法中启用迁移时出错 [英] How do I...Error on enabling migrations in code first approach

查看:86
本文介绍了我如何...在代码第一种方法中启用迁移时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.





这是我得到的错误。有关我在mvc4中使用了互联网模板的信息web app。当我拿一个空模板并添加Entity Framework 6.0作为参考时我得到同样的错误。



This is the error i am getting.For information i have taken an Internet template in my mvc4 web app.and when i take an empty template too and add Entity Framework 6.0 to it as a reference i get the same error.

推荐答案

你可以参考下面的文章:



在MVC 5中执行代码优先迁移



使用MVC 4进行迁移
You can refer the following article:

Perform Code First Migration in MVC 5

Migration Using MVC 4


这篇关于我如何...在代码第一种方法中启用迁移时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆