aspnet_compiler on Mono

1.8k views Asked by At

I'm trying to write a build script for a ASP.NET MVC 3 web site for publishing on Mono. Although some devs use Windows for development, the site must be built on Mono, as the build and Web servers are running OS X. I'm using xbuild to run MSBuild scripts on Mono. The website can be compiled without much problems.

However, I'm unable to find how the equivalent of aspnet_compiler.exe on Mono. I cannot find the AspNetCompiler build task and google searches return [a stub implementation] from a long time ago.

Does the AspNetCompiler task exist in Mono? Are there alternatives for compiling an ASP.NET application on Mono?

1

There are 1 answers

3
Marek Safar On BEST ANSWER

Mono does not have aspnet_compiler yet (as of Mono 2.11) but you can precompile your site on Windows and Mono can run it.

I am not sure why your site must be built on Mono, simple xcopy from Windows box should work. Unless you want to debug it on Mono but that's probably not the case when your devs are using Windows.