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

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

问题描述

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

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.无论如何,正确设置它可以解决问题./彼得

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天全站免登陆