user1157885
user1157885

Reputation: 2069

EntityFramework.dll missing?

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:

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

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?

Thanks

Upvotes: 1

Views: 2624

Answers (2)

Arash Ghasemi Rad
Arash Ghasemi Rad

Reputation: 314

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.

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.

Upvotes: 1

kevchadders
kevchadders

Reputation: 8335

If you can uninstall Entity Framework (EF) 6.0 and install EF 5.0, to see if its an issue with the installation.

Or could you go a version up and try installing EF 6.1?

Hopefully that may help with at identifying where the issue lies.

Upvotes: 0

Related Questions