程序包试图添加对GAC中找不到的System.Runtime的引用

编程入门 行业动态 更新时间:2024-10-26 18:23:09
本文介绍了程序包试图添加对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的引用

本文发布于:2023-07-15 10:33:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1110686.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中找   程序包   Runtime   GAC   System

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!