Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package tried to add reference to System.Runtime which was not found in the GAC

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.

like image 456
Scott Decker Avatar asked Nov 17 '16 17:11

Scott Decker


1 Answers

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.

like image 117
Sebastián Guerrero Avatar answered Oct 23 '22 06:10

Sebastián Guerrero