aspnet_compiler on Mono

2019-04-11 22:16发布

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条回答
我欲成王,谁敢阻挡
2楼-- · 2019-04-11 22:28

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.

查看更多
登录 后发表回答