Is it possible to use Razor 2.0 view engine under mono?

前端 未结 1 908
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 08:05

I was insterested in Razor 2.0\'s condition attributes feature, so I tried to port Razor 2.0 to my MVC3 apps. I followed this link and successfully run my simple app (with o

相关标签:
1条回答
  • 2021-01-12 09:01

    Razor pages worked with Mono, in theory, with version 2.10.x series, but you had to bundle Microsoft's assemblies with it into your Linux box.

    Since Mono 2.11.1, these assemblies are now bundled by default in Mono, because Microsoft open sourced Razor recently (on March 2012).

    Hence, if I were you I would try Mono 2.11.3 to see if the problem is already fixed upstream. If not, please file a bug in http://bugzilla.xamarin.com/ with a standalone testcase to reproduce it, and link to the bug from here.

    0 讨论(0)
提交回复
热议问题