如何获得智能感知的Razor视图引擎 [英] How to get IntelliSense for Razor View Engine

查看:148
本文介绍了如何获得智能感知的Razor视图引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚安装了Microsoft的Visual Web Developer 2010,并试图创建的Razor视图引擎MVC应用程序。

Just installed Microsoft Visual Web Developer 2010 and trying to create an MVC application with Razor View Engine.

在开启了.cshtml的文件,我不能够得到的颜色编辑器语法和智能感知也没有出现。是否有任何选项我明确需要启用它?

When opened a ".cshtml" file, I am not able to get colors for syntaxes in editor and also intellisense is not appearing. Is there any option I explicitly need to enable it?

推荐答案

更新:的<一个href=\"http://weblogs.asp.net/scottgu/archive/2010/11/09/announcing-the-asp-net-mvc-3-release-candidate.aspx\"相对=nofollow>候选发布版终于支持剃刀智能感知。结果
UPDATE2 :<一href=\"http://weblogs.asp.net/scottgu/archive/2011/01/13/announcing-release-of-asp-net-mvc-3-iis-ex$p$pss-sql-ce-4-web-farm-framework-orchard-webmatrix.aspx\"相对=nofollow>最终版本来到这里宣布,它也仍然支持智能感知的剃刀语法。呜呼!

UPDATE: The Release Candidate finally supports Razor IntelliSense.
Update2: The final release got announced here and it also still supports Intellisense for Razor syntax. Woohoo!

下面是新的智能感知增强剃刀和语法高亮显示的截图:

Here's a screenshot of the new enhanced Intellisense and Razor syntax highlighting:

对于一个伟大的概述/介绍MVC3和的NuGet我建议你先看看这个的 PDC10影片

For a great overview/introduction to MVC3 and NuGet I suggest you take a look at this PDC10 video.

previous答案

没有。它不会与目前的测试版尚未工作:

No. It doesn't work yet with the current beta:

剃刀智能感知是不是在今天的
  测试版。我们需要做的多一点
  在我们的测试(和bug修复)
  准备广泛地分发。
  它修补了一些VS文件,所以我们
  需要确保它是100%固态
  之前给它广泛的。

Razor intellisense isn't in today's beta. We needed to do a little more testing (and bug fixing) before we were ready to distribute it broadly. It patches a few VS files and so we need to make sure it is 100% solid before giving it out broadly.

这肯定会在决赛中
  释放,虽然和应
  可供人们在安装
  接下来的几个星期。

It will definitely be in the final release, though, and should be available for people to install in the next few weeks.

谢谢,

斯科特

从<一个拍摄href=\"http://weblogs.asp.net/scottgu/archive/2010/10/06/announcing-nupack-asp-net-mvc-3-beta-and-webmatrix-beta-2.aspx#7624491\" rel=\"nofollow\">http://weblogs.asp.net/scottgu/archive/2010/10/06/announcing-nupack-asp-net-mvc-3-beta-and-webmatrix-beta-2.aspx#7624491

这篇关于如何获得智能感知的Razor视图引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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