I have Visual Studio 2010 /SP1 / MVC 3 (With April Tools Update) installed on a machine with a fresh install of Windows 7 64-bit Professional.
I do not have resharper installed. I never installed an RC or Beta of anything on this new OS Install.
My install steps were as follows:
- Install Visual Studio Professional.
- Install Web Platform Installer.
- Install Visual Studio SP1 from WPI.
- Install Microsoft ASP.net MVC 3 (with April Tools Update)
- Install Productivity Power Tools
Help > About Microsoft Visual Studio shows:
Microsoft Visual Studio 2010 Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework Version 4.0.30319 SP1Rel
System.Web.Mvc.dll file version shows: 3.0.20105.0
Once installed I did the following:
- Open Visual Studio.
- File > New Project
- Choose "ASP.Net MVC 3 Web Application".
- On the "New ASP.NET MVC 3 Project" dialog. I chose "Internet Application", "Razor" View Engine. Hit OK.
Within the project here is the behavior:
- Open any cshtml file and Razor @blocks are not highlighted.
- Intellisense gives html snippets as options in and outside of razor blocks but does not recognize Html helpers or models etc within them.
- The project builds.
- You can run the project and everything works when built. Razor views are rendered normally.
Does anyone know a definitive set of prerequisites to have Razor Intellisense working? Something I can diff between the other Win7 64-bit machines that have Razor Intellisense working and the 2 that have this issue? Registry entries? Are there any Visual Studio logs that can help debug this? After hours of frustration and reading every Razor Intellisense post and question I have run across without coming up with anything that works I am just hoping for some new thoughts on what to troubleshoot/try next.
Thanks for any help on this.
Open With...
and making sure it's set toRazor Editor
– Buildstarted