Sin ley

Blog on Ruby, AWS, Mono, .NET...

ASP.NET Razor in Mono

After Marek Habersack's work on getting ASP.NET MVC 3 working on Mono, we just needed a couple of fixes to have Razor in Mono.

This is how the photo gallery sample I got from WebMatrix looks in Mono:

pager

You will need Mono master/a2ed4f6 if you want to try Razor out. Publish your Razor web site and remove Microsoft.Web.Infrastructure.dll from the bin directory, Mono will load its own from the GAC.

Update: You can get a zip file with the sample from here. Unzip it, 'cd webdeploy', run 'xsp4 --applications /test:.' and browse http://127.0.0.1:8080/test/nodb.cshtml.