'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



Solution 1:[1]

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\

Solution 2:[2]

I wasted a whole weekend on this issue. I ended up resolving it by going into the registry under \HKEY_CURRENT_USER\Software\NuGet\Repository and made a new key titled EntityFrameworkVisualStudio14Tools and set the data value to 1. Hope this keeps other people from wasting a bunch of time like I did.

Solution 3:[3]

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

I had this problem, I solved using this way:

1 - https://docs.microsoft.com/en-us/nuget/guides/install-nuget#nuget-package-manager-in-visual-studio

or

2 - Install it again and choose the packged for your framework ( Individual Componentes )

3 - I havent try it but you can try to install only the individual components for your framework.

I used the second option and it worked with me.

Solution 4:[4]

Need to add a value in registry editor Video on solution

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pappbence96
Solution 2 Brandon Hurst
Solution 3 Vinicius Faria
Solution 4 Niraj Motiani