Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package Installation Error - Entity Framework

The error occurs when I'm trying to create ADO.NET Entity Data Model. The error says:

The preinstalled packages have a reference to a missing Registry value. Could not find a Registry key with name 'EntityFrameworkVisualStudio14Tools' under 'SOFTWARE\NuGet\Repositoty'.

I'm using Windows 10, Visual Studio 2015, and tried to install Entity Framework 6.1.3

like image 314
Tanya Kolev Avatar asked Feb 24 '17 10:02

Tanya Kolev


1 Answers

In my case the string EntityFrameworkVisualStudio15Tools was missing but instead EntityFrameworkVisualStudio16Tools was there. I guess because I also installed Visual Studio 2019, but I'm currently working in Visual Studio 2017. Registry Path on a 64 bit Windows:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Nuget\Repository

Solution: I created the string EntityFrameworkVisualStudio15Tools and copied the value from EntityFrameworkVisualStudio16Tools which was in my case:

C:\Program Files (x86)\Microsoft Visual Studio\Shared\Entity Framework Tools\NuGet Packages\
like image 180
Bernhard Zechmeister Avatar answered Oct 12 '22 23:10

Bernhard Zechmeister