Package tried to add reference to System.Runtime w

2019-04-09 12:53发布

ASP.NET 4.5.1 or 4.5.2

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

I get the following error:

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.

2条回答
仙女界的扛把子
2楼-- · 2019-04-09 13:23

I had the same issue, but adding the MySQL package to my project.

The way that i solved was just very closely to the answer given by Sebastián Guerrero.

So i will be adding a manually reference to that missed library (system.runtime) and than installed the MySQL package and it works perfectly.

ATTENTION: I only unnistall the system.runtime package after installing the MySQL.

References -> Add Reference... and then click on Browse...

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

查看更多
叼着烟拽天下
3楼-- · 2019-04-09 13:36

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...

  • 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.

查看更多
登录 后发表回答