EntityFramework.dll丢失? [英] EntityFramework.dll missing?

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

问题描述

我安装了VS Express Web,安装了EntityFramework 6.0工具,并使用NuGet添加了EntityFramework。所有这些都是相当新鲜的,当我尝试创建ADO模型时出现以下错误:

I installed VS Express Web, I installed EntityFramework 6.0 tools and I added the EntityFramework using NuGet. All of this is reasonably fresh and I get the following error when I try to create an ADO model:

错误2编译转换:元数据文件'C:\Program Files (x86)\Microsoft Visual Studio 13.0\Common7\Tools..\IDE\EntityFramework.dll'

Error 2 Compiling transformation: Metadata file 'C:\Program Files (x86)\Microsoft Visual Studio 13.0\Common7\Tools..\IDE\EntityFramework.dll' could not be found

我已经查看了上述文件夹和Common7中,我有一个 IDE文件夹,但没有工具文件夹。

I've looked in the above folder and within Common7 I have an "IDE" folder but I don't have a "Tools" folder. Is there something I needed to install that I'm missing?

谢谢

推荐答案

我知道您的问题已解决,但是经过3天的搜索,我的问题已使用。我希望可以通过节省至少3天来对其他人有用。

I know thar your problem is solved, but, after 3 days searching, mine solved using this. I hope it would be useful for others by saving at least 3 days.


需要编辑的文件位于$ b $中b C:\Program Files(x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Microsoft\Entity Framework
Tools\Templates\Includes目录。您要编辑
的文件(假设您正在使用EF6和C#)称为
EF6.Utility.CS.ttinclude。如果您编辑该文件,并将
$(VSAPPIDDIR)EntityFramework.dll替换为
…\Common7\IDE\EntityFramework.dll的完整路径(对于其他
引用VSAPPIDDIR),那么您应该就可以了。

The file that needs to be edited is in the "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes" directory. The file you want to edit (assuming you are using EF6 and C#) is called EF6.Utility.CS.ttinclude. If you edit that file and replace "$(VSAPPIDDIR)EntityFramework.dll" with the full path to "…\Common7\IDE\EntityFramework.dll" (and similarly for the other reference to VSAPPIDDIR) then you should be good to go.

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

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