Questions tagged [webgrease]

WebGrease is a suite of tools for optimizing javascript, css files and images.

35 questions
0
votes
1 answer

Cannot Install Web Grease 1.5.1

When I try to install Web Grease 1.5.1 I get this error: You cannot call a method on a null-valued expression. At L:\PROJECT_PATH\packages\WebGrease.1.5.2\tools\install.ps1:45 char:5 + $msbuild.Xml.AddProperty("WebGreaseLibPath",…
Red2678
  • 3,177
  • 2
  • 29
  • 43
0
votes
1 answer

Automate minfication using System.Web.Optimization & WebGrease in asp.net mvc without bundling

I have used System.Web.Optimization & WebGrease DLL to do automate bundle and minifiy javascript and css files in my project using below code. using System.Web.Optimization; using WebGrease; protected void Application_Start() { …
0
votes
0 answers

Could not load file or assembly 'System.Web.Mvc' or one of its dependencies. Index not found

I have created a mvc4 web application. It works on my dev environment but when I deploy it to my production environment (WinHost) it generates following error. I have already changed copy Local to true Could not load file or assembly…
user217648
  • 3,338
  • 9
  • 37
  • 61
0
votes
1 answer

Bundling: Difference between rendering of script with optimizations on and off

I'm using ASP.NET 4.5 MVC4 and I've setup a bundling of css and javascript files with custom made bundles that worked before. I've made the bundles myself, because the load order is important. Somehow it stopped working. I did an update to the…
RolandG
  • 1,269
  • 4
  • 14
  • 21
-12
votes
1 answer

How does one use the WebGreaseTask MSBuild Task from WebGrease?

In the documentation for WebGrease, it talks about using an MSBuild task to do minification at build time. However, when I add the task to my project file, it fails. Here are the lines I've added to my project
anon
1 2
3