3

I'm trying to use CssRewriteUrlTransform but am having a problem referencing it. I updated to the latest Microsoft.AspNet.Web.Optimization using package manager:

update-Package Microsoft.AspNet.Web.Optimization -reinstall

And can now see System.Web.Optimization v4.0.30319 referenced in my project. However I'm still getting

Error 19 The type or namespace name 'CssRewriteUrlTransform' could not be found (are you missing a using directive or an assembly reference?)

Is there something else I'm missing?

(I've got using System.Web.Optimization;) VS Cannot 'resolve' the issue.

Chris Nevill
  • 5,922
  • 11
  • 44
  • 79
  • Are you sure there is an added reference to System.Web.Optimization in the project that contains the code? – Ross Bush Feb 20 '15 at 21:01
  • Btw, I don't see that class in the v4.0.30319 of that assembly. – Ross Bush Feb 20 '15 at 21:07
  • 1
    I made a mistake in this question. Late Friday Evening mode! It was version 1.1.0.0 of the assembly (Runtime version 4.0.30319) I never really got to the bottom of what fixed this, but I went into Nuget Package manager and installed it that way and it started working. – Chris Nevill Feb 25 '15 at 10:12
  • thanks, i had the same issue, and installed **version 1.1.3**, form [here](https://www.nuget.org/packages/microsoft.aspnet.web.optimization/) – Shaiju T Feb 25 '16 at 07:42

0 Answers0