在Visual Studio 2013中从模型生成数据库时出错 [英] Error when generating database from model in Visual Studio 2013

查看:214
本文介绍了在Visual Studio 2013中从模型生成数据库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了VS2013,但仍然有VS2012。在VS2013中,我无法从Entity Framework中的模型生成数据库。我收到以下错误消息:

I have installed VS2013 but still have VS2012. In VS2013 I cannot generate a database from a model in Entity Framework. I get the following error message:

错误信息中的文件确实存在!
有没有人有任何想法如何解决这个问题?

The files in the error message do exist! Does anyone have any idea how I can fix this?

推荐答案

你关于检查驱动器的提示让我看到我以前应该看过
环境变量VS120COMNTOOLS有错误的驱动器号。不记得了,但是我最初在另一个驱动器上安装了VS2013,然后将其更改为C。无论如何设置它正确地解决了问题。
/ Peter

Your tip about checking the drive made me see what I should have seen before. The environment variable VS120COMNTOOLS had the wrong drive letter. Can't remember, but I initially installed VS2013 on another drive and then changed it back to C. Anyway setting it correctly fixed the problem. /Peter

这篇关于在Visual Studio 2013中从模型生成数据库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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