Coder Social home page Coder Social logo

Update-Package in NuGet about combres HOT 9 CLOSED

alex1kirch avatar alex1kirch commented on May 29, 2024
Update-Package in NuGet

from combres.

Comments (9)

buunguyen avatar buunguyen commented on May 29, 2024

Combres doesn't use ilmerge. How did you see this error?

from combres.

lamarant avatar lamarant commented on May 29, 2024

@alex1kirch: I'm getting this error too (my application is .Net 4)...can you outline the steps to resolve please? This totally hosed my application...I can't build it even after uninstalling Combres. I originally installed via NuGet as well. Is there a fix?

UPDATE: After trying to correct the issue with the current version, and failing miserably, I ended up having to roll back my app. After rolling back I gave Combres another shot but this time installed the previous version via NuGet (see below). Everything works fine now. The current version must have been built using .Net Framework v4.5 which causes a pretty serious issue with ILMerge. For those of us that don't play well with low-level .Net core library setting stuff and excpect things to "just work" this ends up being a giant clusterF. Install via NuGet using the below and everything "just works" as expected.

PM> Install-Package combres.mvc -Version 2.2.2.6

http://nuget.org/packages/combres.mvc/2.2.2.6

from combres.

alex1kirch avatar alex1kirch commented on May 29, 2024

I think, that reason of the issue may be an assembly reference. For example, fasterflect. My application is Net4, too. VS2010 and VS2012 are installed on my host machine.

from combres.

buunguyen avatar buunguyen commented on May 29, 2024

@alex1kirch if you remove fasterflect, does ilmerge work (Combres won't work, I just want to know that Fasterflect singlehandedly causes the issue). As a note, I built Combres to target .NET 3.5. It runs fine on my machine with VS2010 and VS2012 installed.

from combres.

zaltar avatar zaltar commented on May 29, 2024

It does seem to be Fasterflect that is causing this error. I recompiled Fasterflect and Combres using VS 2010 on a computer that does not have .NET 4.5 nor VS2012 installed and the error has gone away.

from combres.

nato24 avatar nato24 commented on May 29, 2024

It seems the latest nuget version was built w/ a different version of Fasterflect. Your build is expecting version 2.1.2.0, but nuget installs 2.1.0.8328.

After adding the expecting .Net binding in my web.config, everything works.

<runtime>
  <dependentAssembly>
    <assemblyIdentity name="Fasterflect" publicKeyToken="38d18473284c1ca7" />
    <bindingRedirect oldVersion="2.1.0.8328" newVersion="2.1.2.0" />
  </dependentAssembly>
</runtime>

Hope that helps.

from combres.

richtea avatar richtea commented on May 29, 2024

The problem is that recent versions of Fasterflect (v2.1.1 and later) were built against .NET4.5 assemblies, in which ExtensionAttribute was moved from System.Core to mscorlib. This breaks for anyone running .NET4.0. See my comment here.

You can use ildasm (in PowerShell) to see the problem:

ildasm .\Fasterflect.dll /text | Select-String "mscorlib.*ExtensionAttribute"

from combres.

buunguyen avatar buunguyen commented on May 29, 2024

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.

from combres.

richtea avatar richtea commented on May 29, 2024

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

from combres.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.