1

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

Community
  • 1
  • 1
Rohan Büchner
  • 5,333
  • 4
  • 62
  • 106
  • 1
    This isn't a direct answer to your question, but Cassette (getcassette.net) has worked well for me so far. – Ragesh Mar 23 '12 at 13:10
  • I'll try it out quick. If/When it works, I'll let you know to add an answer so i can mark it as accepted :P – Rohan Büchner Mar 23 '12 at 13:18

2 Answers2

2

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.

Rohan Büchner
  • 5,333
  • 4
  • 62
  • 106
  • This is true, but it does not do nearly as much as the Combres packages does. I am developing a large Mvc4 application now and the use of Combres over the bundling/combining built in gives me a lot more options. Combining and minifying are just a small subset, the use of css variables is a complete joy to have!! – Ed DeGagne Apr 03 '12 at 18:32
0

Do you have

<%@ Import Namespace="Combres" %>

On the top of the page to include the Combres namespace?

For more information (and the Razor syntax) you can also look at: http://combres.codeplex.com/wikipage?title=5-Minute%20Quick%20Start&referringTitle=Home

Rody
  • 2,675
  • 1
  • 22
  • 40
  • Yes, i tried. @using Combres / Combres.Mvc... no result for both – Rohan Büchner Mar 23 '12 at 13:12
  • Is the assembly correctly registered using NuGet, or did you get any messages in NuGet when adding the package? – Rody Mar 23 '12 at 13:13
  • got no error messages, and as far as i can see in the configuration files its all there (i'm saying this without knowing what it "all" is though", but it installed without any hickups. as a side note I'm getting that error message in/out of run-time as well. The Combres Helper never gets picked up at all – Rohan Büchner Mar 23 '12 at 13:34