Taritsyn / BundleTransformer

Bundle Transformer - a modular extension for System.Web.Optimization (also known as the Microsoft ASP.NET Web Optimization Framework).
Apache License 2.0
130 stars 19 forks source link

Need BundleTransformer.NUglify new package release #54

Closed jzabroski closed 2 years ago

jzabroski commented 2 years ago

See my comments here: https://github.com/Taritsyn/BundleTransformer/commit/beb83bd62bc0ad5150f6775ed10efc7b5fc87890#r67181806

Taritsyn commented 2 years ago

Hello, John!

This problem has been resolved in version 1.12.46.

Basically, you could use the following command to update the package:

nuget update "PATH-TO-CSPROJ-FILE" -Id NUglify -Version 1.17.8

In case of an error “Could not load file or assembly 'NUglify, Version=1.17.3.0, Culture=neutral, PublicKeyToken=15bc7810aec21b5e' or one of its dependencies. …”, add the following setting to the Web.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  …
  <runtime>
    …
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      …
      <dependentAssembly>
        <assemblyIdentity name="NUglify" publicKeyToken="15bc7810aec21b5e" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.17.8.0" newVersion="1.17.8.0" />
      </dependentAssembly>
      …
    </assemblyBinding>
    …
  </runtime>
  …
</configuration>
jzabroski commented 2 years ago

@Taritsyn Agree, it is resolved. Closing this. TIL that Nuget chooses the lowest applicable version for transitive references, in order to, for example, avoid upgrading someone into a zero day exploit.