程序包试图添加对GAC中找不到的System.Runtime的引用 [英] Package tried to add reference to System.Runtime which was not found in the GAC

查看:425
本文介绍了程序包试图添加对GAC中找不到的System.Runtime的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET 4.5.1或4.5.2

ASP.NET 4.5.1 or 4.5.2

将Nuget软件包MicrosoftAspNet.Identity.EntityFramework从2.2.1版本更新到3.0.0-rc1-final版本

Updating Nuget package MicrosoftAspNet.Identity.EntityFramework from version 2.2.1 to version 3.0.0-rc1-final

我收到以下错误:

无法添加参考.程序包"Microsoft.AspNet.Identity.EntityFramework"尝试向GAC中找不到的对"System.Runtime"的框架引用进行添加.这可能是程序包中的错误.请联系包裹 业主寻求帮助.

Failed to add reference. The package 'Microsoft.AspNet.Identity.EntityFramework' tried to add a framework reference to 'System.Runtime' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.

推荐答案

我在另一个软件包中也遇到了类似的问题.

I had a similar issue with another package.

我解决"了它,它为缺少的库添加了手动引用,更新了程序包,然后删除了手动添加的引用:

I "solved" it adding a manually reference to missed library, updating the package and then removing the reference added manually:

  • 在您的项目上,转到参考-> 添加参考... ,然后单击浏览...

  • On your project go to References -> Add Reference... and then click on Browse...

在我的安装(Windows 10)上,您的文件位于: C:\ Windows \ Microsoft.NET \ assembly \ GAC_MSIL \ System.Runtime \ v4.0_4.0.0.0__b03f5f7f11d50a3a \ System. Runtime.dll

On my installation (Windows 10), your file is located on: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll

添加,更新然后删除.

Add, update and then remove.

我知道,这不是解决方案,但是它将允许您继续工作,直到获得真正的解决方案为止.

I know, it is not a solution, but it will allow you continue working until get a real solution.

这篇关于程序包试图添加对GAC中找不到的System.Runtime的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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