buunguyen / combres

ASP.NET and MVC performance optimization library ⛺
Other
123 stars 37 forks source link

The latest version does not supportMVC2? #6

Closed itltf512116 closed 11 years ago

itltf512116 commented 11 years ago

Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', I'm using .NET 4.0.,mvc2 How should I solve the problem? Thanks

richtea commented 11 years ago

I've just been investigating this. The problem is with one of the dependencies, Fasterflect. The recent versions have been build against assemblies from .NET Framework v4.5 instead of .NET4.0, which causes the error you are seeing. See this blog post for more details.

The last working version of Fasterflect (that doesn't cause this problem) is v2.1.0. You will therefore need to downgrade to an earlier version of Combres that references the earlier version of Fasterflect - I suggest 2.2.2.6, Unfortunately, the Nuget dependency specifications for earlier versions of Combres are a bit broken so hopefully this won't conflict with any other dependency you are using (as it does for me, sadly, so I will have to remove Combres from my project).

buunguyen commented 11 years ago

I just pushed a release that references Fasterflect 2.1.0. Please try to see if that fixes the issue. Make sure you remove all assembly redirection to the latest version of Fasterflect.

richtea commented 11 years ago

That fixes the issue, thanks for doing it so quickly!