Asset pipeline on Razor

109 views
Skip to first unread message

James Crowley

unread,
May 18, 2012, 11:10:00 AM5/18/12
to fubumv...@googlegroups.com
Just trying out the Asset pipeline, following the docs on
http://readthedocs.org/docs/fubumvc/en/latest/topics/assets/usingassets.html?highlight=asset
(woop - thank you). However, I'm getting

"Unable to compile template. The best overloaded method match for
'RazorEngine.Templating.TemplateBase.Write(object)' has some invalid
arguments"

when I add

@this.Asset("jquery");

in my Razor views? Is this a Razor issue or something more general I
haven't set up correctly for the Asset pipeline to work?

Thanks

James

Jeremy D. Miller

unread,
May 18, 2012, 11:12:15 AM5/18/12
to fubumv...@googlegroups.com
That sounds like a mismatched version problem between the RazorEngine assembly and our FubuMVC.Razor assembly to me.
 
Jeremy D. Miller
The Shade Tree Developer
jeremy...@yahoo.com



From: James Crowley <james....@gmail.com>
To: fubumv...@googlegroups.com
Sent: Fri, May 18, 2012 10:10:03 AM
Subject: [fubumvc] Asset pipeline on Razor
--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To post to this group, send email to fubumv...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-devel+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fubumvc-devel?hl=en.

James Crowley

unread,
May 18, 2012, 11:18:59 AM5/18/12
to fubumv...@googlegroups.com
NuGet package versions:

<package id="FubuCore" version="0.9.9.149" />
<package id="FubuLocalization" version="0.9.5.17" />
<package id="FubuMVC" version="0.9.5.926" />
<package id="FubuMVC.Razor" version="0.9.5.926" />
<package id="FubuMVC.References" version="0.9.5.926" />
<package id="RazorEngine" version="3.0.8" />

Dll versions in the /bin/ folder:

RazorEngine.dll = 3.0.8.0
System.Web.Razor.dll = 1.0.20105.407

Is that right? Or is this something wrong in the NuGet package itself?
Thanks Jeremy.
> fubumvc-deve...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/fubumvc-devel?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "FubuMVC Development Group" group.
> To post to this group, send email to fubumv...@googlegroups.com.
> To unsubscribe from this group, send email to
> fubumvc-deve...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/fubumvc-devel?hl=en.



--

---
James Crowley
CTO, FundApps - a new generation in financial services software -
http://www.fundapps.co/
Founder, developerFusion - the global developer community -
http://www.developerfusion.com/

linkedin: http://linkedin.com/in/jamescrowley
twitter: http://twitter.com/jamescrowley

Jeremy D. Miller

unread,
May 18, 2012, 11:39:57 AM5/18/12
to fubumv...@googlegroups.com
So I just flat out don't know.  That's the same version of RazorEngine that's working fine with the FubuMVC master.  I may defer to Corey on this one.
 
Sent: Fri, May 18, 2012 10:19:00 AM
Subject: Re: [fubumvc] Asset pipeline on Razor
> fubumvc-devel+unsub...@googlegroups.com.

> For more options, visit this group at
> http://groups.google.com/group/fubumvc-devel?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "FubuMVC Development Group" group.
> To post to this group, send email to fubumv...@googlegroups.com.
> To unsubscribe from this group, send email to
> fubumvc-devel+unsub...@googlegroups.com.

> For more options, visit this group at
> http://groups.google.com/group/fubumvc-devel?hl=en.



--

---
James Crowley
CTO, FundApps - a new generation in financial services software -
http://www.fundapps.co/
Founder, developerFusion - the global developer community -
http://www.developerfusion.com/

linkedin: http://linkedin.com/in/jamescrowley
twitter: http://twitter.com/jamescrowley

--
You received this message because you are subscribed to the Google Groups "FubuMVC Development Group" group.
To post to this group, send email to fubumv...@googlegroups.com.
To unsubscribe from this group, send email to fubumvc-devel+unsub...@googlegroups.com.

Corey Kaylor

unread,
May 18, 2012, 12:07:08 PM5/18/12
to fubumv...@googlegroups.com

Can you try @{ this.Asset("jquery") }

To unsubscribe from this group, send email to fubumvc-deve...@googlegroups.com.

James Crowley

unread,
May 18, 2012, 12:18:13 PM5/18/12
to fubumv...@googlegroups.com
Oh darn, that was it. Thanks Corey... should have realized it's not
writing any content there.
Reply all
Reply to author
Forward
0 new messages