NuGet QuickGraph 3.6.61119.7 gives error Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral

Topics: bug
Apr 25, 2012 at 12:10 PM

Hi, 

I am using NuGet QuickGraph 3 3.6.61119.7. It generates .NET portable class library which needs version 2.0.5.0 of System.core. We observed that dll with this version is not installed when some versions (probably older, I am still not very sure about this) of .NET 4 are installed. This is causing problem to me.  However the problem was solved when the .Net 4.0 framework is upgraded. But still on some of my machine where .Net 4.0 is installed (Without upgrading .Net 4.0), It throws the exception :

Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

However,  I just used NuGet QuickGraph 3.6.61119.7 source code to replace the old assemblies of 2.0.5.0 with the new one 4.0 and created my own nuget packages which solves the problem. But I still like to directly install upgraded NuGet QuickGraph pacakge which solve my problem. Can you provide me the upgraded NuGet QuickGraph 3.6.61119.7  ?

Thanks

Sanz Bajracharya

 

 

 

 

May 14, 2012 at 10:32 AM

I'm having the same issue, only I can't get the project to load so I can build it myself. :(

May 17, 2012 at 9:19 AM

Also having the same project. I'll raise an issue in the tracker.

May 17, 2012 at 10:01 AM

Update: there is no problem with the package - you need to have .NET 4 up to date. Installing http://support.microsoft.com/kb/2468871 fixed the problem for us.

May 17, 2012 at 10:12 AM
wilhol wrote:

Update: there is no problem with the package - you need to have .NET 4 up to date. Installing http://support.microsoft.com/kb/2468871 fixed the problem for us.

I ended up working around it by rebuilding QuickGraph without the multi-framework stuff, instead just targeting .NET 4

I'll give the KB patch a try with the nuget package.

Jun 17, 2012 at 12:23 PM

The .NET 4 update works for me too.