软件包安装错误-实体框架 [英] Package Installation Error - Entity Framework

查看:84
本文介绍了软件包安装错误-实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试创建ADO.NET实体数据模型时发生错误。该错误表明:

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


预装的软件包引用了丢失的注册表
值。在
'SOFTWARE\NuGet\Repositoty'下找不到名为
'EntityFrameworkVisualStudio14Tools'的注册表项。

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

我正在使用Windows 10,Visual Studio 2015,并尝试安装Entity Framework 6.1.3

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

推荐答案

如果缺少字符串 EntityFrameworkVisualStudio15Tools ,而是出现了 EntityFrameworkVisualStudio16Tools 。我猜是因为我还安装了Visual Studio 2019,但我目前正在Visual Studio 2017中工作。
64位Windows上的注册表路径:

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

解决方案:
我创建了字符串 EntityFrameworkVisualStudio15Tools 并从 EntityFrameworkVisualStudio16Tools 复制了值,在我的情况下:

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\

这篇关于软件包安装错误-实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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