Commented Issue: Support Mono (linux) [3516]

0 views
Skip to first unread message

sparkviewengine Issue Tracker Rss Feed

unread,
Mar 6, 2010, 3:42:02 PM3/6/10
to spar...@googlegroups.com
Beginning with version 2.4.2.1 Mono ships with native support for ASP.NET MVC.

According to a discussion on the mailing list [1] and own tests there are problems resolving view paths when Spark is used with Mono on a linux box.

Fixing this issue would help to port existing applications to linux and also to spread usage of Spark.

[1] http://groups.google.com/group/spark-dev/browse_thread/thread/eacfbda5eb706e50/3137a9942d2995e3?show_docid=3137a9942d2995e3
Comments: ** Comment from web user: vansickle **

Hi, I also need Mono support, so while http://github.com/loudej/spark/tree/mono is very old, I patched a little latest spark version from git - everything works for my site on Mono 2.4.2.3. Patch attached, hope it helps somebody.

URL: http://sparkviewengine.codeplex.com/WorkItem/View.aspx?WorkItemId=3516

sparkviewengine Issue Tracker Rss Feed

unread,
Mar 7, 2010, 8:42:02 PM3/7/10
to spar...@googlegroups.com
Beginning with version 2.4.2.1 Mono ships with native support for ASP.NET MVC.

According to a discussion on the mailing list [1] and own tests there are problems resolving view paths when Spark is used with Mono on a linux box.

Fixing this issue would help to port existing applications to linux and also to spread usage of Spark.

[1] http://groups.google.com/group/spark-dev/browse_thread/thread/eacfbda5eb706e50/3137a9942d2995e3?show_docid=3137a9942d2995e3
Comments: ** Comment from web user: vansickle **

somehow patch wasn't attached, you can download it here http://files.vhqlabs.com/0001-simple-mono-patch.patch

URL: http://sparkviewengine.codeplex.com/WorkItem/View.aspx?WorkItemId=3516

sparkviewengine Issue Tracker Rss Feed

unread,
Mar 9, 2010, 8:42:01 PM3/9/10
to spar...@googlegroups.com
Beginning with version 2.4.2.1 Mono ships with native support for ASP.NET MVC.

According to a discussion on the mailing list [1] and own tests there are problems resolving view paths when Spark is used with Mono on a linux box.

Fixing this issue would help to port existing applications to linux and also to spread usage of Spark.

[1] http://groups.google.com/group/spark-dev/browse_thread/thread/eacfbda5eb706e50/3137a9942d2995e3?show_docid=3137a9942d2995e3
Comments: ** Comment from web user: blue_fenix **

this patch does not work. also, it breaks tests on the windows version. instead of /, you should use Path.DirectorySeparatorChar. this allows the framework to decide which character to use to search for views, and it works on both OS X and windows. there is still a problem with template truncation on OSX, however.

URL: http://sparkviewengine.codeplex.com/WorkItem/View.aspx?WorkItemId=3516

sparkviewengine Issue Tracker Rss Feed

unread,
Mar 9, 2010, 11:42:02 PM3/9/10
to spar...@googlegroups.com
Beginning with version 2.4.2.1 Mono ships with native support for ASP.NET MVC.

According to a discussion on the mailing list [1] and own tests there are problems resolving view paths when Spark is used with Mono on a linux box.

Fixing this issue would help to port existing applications to linux and also to spread usage of Spark.

[1] http://groups.google.com/group/spark-dev/browse_thread/thread/eacfbda5eb706e50/3137a9942d2995e3?show_docid=3137a9942d2995e3
Comments: ** Comment from web user: vansickle **

blue_fenix: actually, it works for me on real project. And yes, it breaks tests on windows, but only tests - / can be used as separator on windows too. Nevertheless, I agree - Path.DirectorySeparatorChar is more correct way - just slightly more work to change.

URL: http://sparkviewengine.codeplex.com/WorkItem/View.aspx?WorkItemId=3516

Rob G

unread,
Mar 10, 2010, 3:02:56 AM3/10/10
to spar...@googlegroups.com
This problem has been resolved on the FubuMVC project for the Spark tests as well as examples, and all works just fine on Mono now.

Here's the commit that fixed the problem - you'll notice the use of "Path.Combine" in several places which removes the need to use Path.DirectorySeparatorChar.

Hope that helps,
RobertTheGrey
> --
> You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.
> To post to this group, send email to spar...@googlegroups.com.
> To unsubscribe from this group, send email to spark-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spark-dev?hl=en.
>
>

Christopher Pelatari

unread,
Mar 10, 2010, 5:20:48 PM3/10/10
to spar...@googlegroups.com
awesome I'll give that a try on my OS X install.
--
-Christopher Pelatari | http://bluefenix.net
Reply all
Reply to author
Forward
0 new messages