只是安装了Microsoft Visual Web Developer 2010,并尝试使用Razor View Engine创建一个MVC应用程序。
当打开一个“.cshtml”文件时,我无法在编辑器中获取语法的颜色,并且未显示智能感知。是否有任何选项我明确需要启用它?
解决方法
更新:
Release Candidate终于支持Razor IntelliSense。
Update2: The final release got announced here,它还支持Intellisense for Razor语法。 Woohoo!
Update2: The final release got announced here,它还支持Intellisense for Razor语法。 Woohoo!
以下是新增强的Intellisense和Razor语法突出显示的屏幕快照:
对于MVC3和NuGet的一个很好的概述/介绍,我建议你看看这个PDC10 video。
上一个答案
不,目前的测试版还没有工作:
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.Thanks,
Scott
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。