未找到元数据文件 - Data.Entity.Model [英] Metadata file not found - Data.Entity.Model

查看:31
本文介绍了未找到元数据文件 - Data.Entity.Model的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在创建网络服务时遇到类似问题吗?

Anyone having similar problem, while creating webservices?

编译转换:元数据文件'D:ProgramFilesVS2013Common7Tools..IDEMicrosoft.Data.Entity.Design.dll'找不到 D:PROJEKTYapkiws2WSWSDataModel.tt

Compiling transformation: Metadata file 'D:Program FilesVS2013Common7Tools..IDEMicrosoft.Data.Entity.Design.dll' could not be found D:PROJEKTYapkiws2WSWSDataModel.tt

我再次尝试添加数据模型,重新启动VS,清理和构建解决方案,创建新项目,删除和添加引用,安装最新版本.我认为在互联网上找到的任何解决方案都不适合我.

I tried adding data model again, restarting VS, cleaning and building solution, creating new project, deleting and adding reference, installing the newest version. I think that any solution found on internet does not work for me.

有什么建议吗?我想将文件粘贴到这个目录中,但想不到那里可能有什么.

Any suggestions? I think of pasting file into this directory, but can't think what may be there.

推荐答案

基于

C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftEntity Framework ToolsTemplatesIncludesEF6.Utility.CS.ttinclude

C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEExtensionsMicrosoftEntity Framework ToolsTemplatesIncludesEF6.Utility.CS.ttinclude

,代码生成器正在以下位置寻找缺失的 DLL:

, the code generator is looking for the missing DLLs in the following locations:

<#@ assembly name="%VS120COMNTOOLS%..IDEEntityFramework.dll" #>
<#@ assembly name="%VS120COMNTOOLS%..IDEMicrosoft.Data.Entity.Design.dll" #>

我发现环境变量 %VS120COMNTOOLS% 与visual studio的正确安装路径不兼容,所以我从高级系统属性中更改了它,它起作用了

I discovered that the environment variable %VS120COMNTOOLS% is not compatible with the correct installation path of visual studio, so I changed it from Advanced system properties and it worked

这篇关于未找到元数据文件 - Data.Entity.Model的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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