创建MVC2项目已具备的Raz​​or视图引擎 [英] Create a Mvc2 Project with Razor View Engine

查看:130
本文介绍了创建MVC2项目已具备的Raz​​or视图引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过如何使用星火视图引擎,而不是网络表单视图引擎在MVC2项目,所以我觉得我们可以做同样的的Razor视图引擎,但是当我在Google上搜索,我无法找到任何有用的。所以,你利弊我张贴了这个问题。请帮忙!非常感谢!




注意:剃刀MVC2项目,而不是在MVC3
再次感谢!

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!

推荐答案

尽管这在技术上是可能的,你需要code大片大片从MVC3源拷贝。

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

剃刀将仍然需要.NET 4.0,所以这真的不值得;你应该升级到MVC3。

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

这篇关于创建MVC2项目已具备的Raz​​or视图引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆