ASP.NET MVC剃刀设计师 [英] ASP.NET MVC Razor designer

查看:122
本文介绍了ASP.NET MVC剃刀设计师的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我介绍ASP.NET MVC到一个新的团队,那出现往往是一个问题有没有一个设计师的意见

I am introducing ASP.NET MVC to a new team and one of the questions that comes up often is "Is there a designer view"

即使它不是布局是有ASP.NET MVC3使用剃刀视图引擎是在Visual Studio设计视图。

Even if it's not for layout is there an IN visual studio design view for ASP.NET MVC3 using the razor view engine.

推荐答案

没有,没有设计师。这可能会是困难的设计人员甚至不知道什么是剃刀code在许多情况下的意思。

No, there is no designer. It would likely be difficult for a designer to even know what is meant by Razor code in many cases.

这真的不是那么难,只需使用您的网络浏览器作为一个观众。您可以更改HTML而无需重新编译,只要更改,保存并刷新浏览器。

It's really not so difficult to just use your web browser as a viewer. You can make changes to the HTML without having to recompile, just make the change, save, and refresh your browser.

编辑(2013年8月2日)

EDIT (8/2/2013)

由于这个答案最初写,微软已经发布的Visual Studio 2012包括一个功能叫做<一个href=\"http://blogs.msdn.com/b/visualstudiouk/archive/2012/11/19/visual-studio-2012-page-inspector.aspx\">Page督察,这虽然不是在这个问题被写入的方式一个真正的设计师,它确实给一个好得多的半活的preVIEW模式。这已经在Visual Studio 2013(这是今天RTM'd,13年10月17日)进行了改进。

Since this answer was originally written, Microsoft has released Visual Studio 2012 which includes a feature called Page Inspector, which while not a true "designer" in the way that the question was written, it does give a much nicer semi-live preview mode. This has been improved in Visual Studio 2013 (which was RTM'd today, 10/17/13).

这篇关于ASP.NET MVC剃刀设计师的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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