在 MVC 5 中使用 ASPX 视图引擎 [英] Using ASPX View Engine with MVC 5

查看:23
本文介绍了在 MVC 5 中使用 ASPX 视图引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 MVC 5 中使用 ASPX 视图引擎?

Is it possible to use ASPX view engine with MVC 5?

我们有一个在 ASPX 视图引擎上使用 MVC 4 的产品,我们想迁移到 MVC 5,但是,当我在 VS 2013 中创建一个新项目时,选择 MVC 并尝试添加一个新视图,我看不到使用 ASPX 视图引擎添加视图的任何选项.微软停止使用 ASPX 视图引擎了吗?有没有办法继续使用ASPX?

We have a product using MVC 4 on ASPX view engine and we want to migrate to MVC 5, however, when I create a new project in VS 2013, select MVC and try to add a new View, I don't see any option to add a view using ASPX View Engine. Has Microsoft stopped with ASPX View Engine? Is there any way to still use ASPX?

推荐答案

这是一篇关于 VS2013 发布的博客文章说:Razor 文件(.cshtml 和 .vbhtml)使用的 HTML 编辑器以及普通 HTML文件已替换为全新的代码.Web 窗体(.aspx 和 .ascx)涉及更多的复杂性,不适合 Visual Studio 2013 的完善版本,因此它们将在即将发布的产品版本中更新. " 来源:http://blogs.msdn.com/b/webdev/archive/2013/06/27/html-editing-features-in-visual-studio-2013-preview.aspx

This is what a blog post regarding the release of VS2013 said: "The HTML editor used by Razor files (.cshtml and .vbhtml) as well as normal HTML files has been replaced with entirely new code. Web Forms (.aspx and .ascx) involve significantly more complexity and did not fit into a well-polished release for Visual Studio 2013, so they will be updated in an upcoming product release. " Source:http://blogs.msdn.com/b/webdev/archive/2013/06/27/html-editing-features-in-visual-studio-2013-preview.aspx

这篇关于在 MVC 5 中使用 ASPX 视图引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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