EntityFrameworks.dll文件丢失? [英] EntityFrameworks.dll file missing?

查看:232
本文介绍了EntityFrameworks.dll文件丢失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完全新的.NET世界,一直试图打造继MVC应用程序<一href=\"http://www.asp.net/mvc/tutorials/mvc-5/database-first-development/creating-the-web-application\"相对=nofollow>本教程,首先创建一个数据库,然后创建它的顶部一个MVC项目,每当我从现有数据库创建模型,我得到了一些错误,像这样的:

I am totally new to the .NET world and been trying to build an MVC application following this tutorial, creating a database first then creating an MVC project on top of it and whenever I create the Models from the existing db I get a number of errors like this:

错误1编译转型:元数据文件
  %VS120COMNTOOLS%.. \\ IDE \\ EntityFramework.dll不能
  找到C:\\用户\\ J□\\桌面\\视觉工作室
  2013 \\项目\\ ContosoSite \\ ContosoSite \\ \\型号ContosoModel.tt

Error 1 Compiling transformation: Metadata file '%VS120COMNTOOLS%..\IDE\EntityFramework.dll' could not be found c:\users\j\desktop\visual studio 2013\Projects\ContosoSite\ContosoSite\Models\ContosoModel.tt

和这其中也:

错误2编译转型:元数据文件
  %VS120COMNTOOLS%.. \\ IDE \\ Microsoft.Data.Entity.Design.dll不能
  找到C:\\用户\\ J□\\桌面\\视觉工作室
  2013 \\项目\\ ContosoSite \\ ContosoSite \\ \\型号ContosoModel.tt

Error 2 Compiling transformation: Metadata file '%VS120COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.dll' could not be found c:\users\j\desktop\visual studio 2013\Projects\ContosoSite\ContosoSite\Models\ContosoModel.tt

我已经安装了实体框架(6.1版本)

I have Entity Frameworks installed (version 6.1)

谷歌搜索和寻找答案小时后明显有一个(或多个)文件(S)缺失(DLL?)在我的Windows 8.1操作系统。

after hours of googling and searching for answers apparently there is a(or many) file(s) missing (dll?) in my Windows 8.1 OS.

有没有人想出了一个解决方案?

Has anyone come up with a solution for this?

Ĵ

推荐答案

按照步骤按<一个href=\"http://stackoverflow.com/questions/19664833/metadata-file-not-found-data-entity-model\">this计算器,重建从DB瞧的款!全部整理

Followed the steps as per this stackoverflow, rebuilt the Models from the db and voila! All Sorted

感谢@Jaon


  1. 检查您的安装位置。我安装VS其他位置D:\\比默认为C:\\,所以我得到了错误

  2. 修改环境变量到你的位置,这对我来说意味着改变C:\\ Program Files文件(x86)的\\微软的Visual Studio 12.0 \\ Common7 \\ TOOLS \\到D:\\微软的Visual Studio 12.0 \\ Common7 \\工具

  3. 请不要忘了一个\\添加到单词的末尾。

这篇关于EntityFrameworks.dll文件丢失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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