Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James Gaisford 22 posts 165 karma points
    Aug 21, 2014 @ 10:25
    James Gaisford
    0

    Adding bundling without upgrading

    Hi all

    Long time lurker, first time poster!

    I have an Umbraco 6.2.0 site and I want to add bundling to the site. I'm following the guide here https://gist.github.com/jkarsrud/5143239.

    However, when I perform the first step via Nuget Package Manager...

    Install-Package Microsoft.AspNet.Web.Optimization

    The package installs, but Umbraco get's upgraded from 6.2.0 to 6.2.1, which is not what I want. I just want to add bundling. Does anyone know if this is possible via Nuget, or will I have to manually add the dlls to get bundling working in Umbraco?

  • Dan Lister 416 posts 1974 karma points c-trib
    Aug 21, 2014 @ 11:31
    Dan Lister
    0

    Hi James,

    You could try adding the ignore dependencies flag to your install package command:

    Install-Package -IgnoreDependencies Microsoft.AspNet.Web.Optimization
    

    Thanks, Dan.

  • Dan Lister 416 posts 1974 karma points c-trib
    Aug 21, 2014 @ 11:34
    Dan Lister
    0

    Or if that doesn't work, after installing the package you could downgrade Umbraco to 6.2.0:

    Install-Package UmbracoCms -Version 6.2.0
    

    Thanks, Dan.

  • James Gaisford 22 posts 165 karma points
    Aug 21, 2014 @ 13:18
    James Gaisford
    101

    Thanks Dan. That set me off on the right path, though it wasn't quite as simple as your first post suggested as the Optimization package requires all the dependencies for it to work!

    But using the IgnoreDependencies flag I was able to work out that it was the Json.Net package what was triggering the Umbraco upgrade. So, installing the packages separately using the three lines below gets bundling installed and no tinkering with my Umbraco.

    Install-Package-IgnoreDependenciesMicrosoft.AspNet.Web.Optimization
    Install-Package -IgnoreDependencies WebGrease
    Install-Package Antlr

    Thanks for your help, Dan.

Please Sign in or register to post replies

Write your reply to:

Draft