Search code examples
asp.net-mvc-3model-view-controllerasp.net-mvc-4combres

Combres, compress and combine .js and .css files


I'm trying to add the following to my ASP.Net solution. I installed it using the nuget package "Install-Package Combres.Mvc"

so far I'm not having the best luck with it as I keep getting the following error

'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Combres' and no extension method 'Combres' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)

I also followed the advice of this link... and got same error:/

I'd like to make use of some compression & combination tool/framework so I'm hoping someone has any experience with this


Solution

  • I scrapped the whole combress/casette route after a few failed attempts. I read up a bit and saw that Asp.Net MVC 4 supports bundles/combining & compressing natievly. Which worked quite well for me.