Create a Mvc2 Project with Razor View Engine

大兔子大兔子 提交于 2019-12-01 02:01:59

问题


I've read how to use Spark View Engine instead of Webform View Engine in a Mvc2 Project so I think we can do the same with Razor View Engine but when I search on GOOGLE, I cant find anything helpful. So, to you pros I post this question. Please help! Thanks so much!

Attention: Razor in Mvc2 project, not in Mvc3. Thanks again!


回答1:


While this is technically possible, you'll need to copy vast swaths of code from the MVC3 source.

Razor will still need .Net 4.0, so this is really not worth it; you should just upgrade to MVC3.



来源:https://stackoverflow.com/questions/5274066/create-a-mvc2-project-with-razor-view-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!