未找到元数据文件 - Data.Entity.Model [英] Metadata file not found - Data.Entity.Model
问题描述
编译转换:元数据文件'D:\Program
文件\VS2013\Common7\Tools..\IDE\Microsoft.Data.Entity.Design.dll'
找不到D:\PROJEKTY\apki\ws2\WS\ WS\DataModel.tt
我尝试再次添加数据模型,重新启动VS,清理和构建解决方案,创建新项目,删除和添加引用,安装最新版本。我认为在互联网上找到的任何解决方案对我来说都不起作用。
任何建议?我想把这个文件粘贴到这个目录下,但是不能想到可能会有什么。
根据
C:\程序文件(x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\\代码生成器正在以下位置查找缺少的DLL:
<#@ assembly name =%VS120COMNTOOLS%.. \IDE\EntityFramework.dll#>
<#@ assembly name =%VS120COMNTOOLS%.. \IDE\Microsoft.Data.Entity.Design.dll#>
我发现环境变量%VS120COMNTOOLS%与visual studio的正确安装路径不兼容,所以我改变了它从高级系统属性,它工作
Anyone having similar problem, while creating webservices?
Compiling transformation: Metadata file 'D:\Program Files\VS2013\Common7\Tools..\IDE\Microsoft.Data.Entity.Design.dll' could not be found D:\PROJEKTY\apki\ws2\WS\WS\DataModel.tt
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.
Based on
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF6.Utility.CS.ttinclude
, the code generator is looking for the missing DLLs in the following locations:
<#@ assembly name="%VS120COMNTOOLS%..\IDE\EntityFramework.dll" #>
<#@ assembly name="%VS120COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.dll" #>
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屋!