Home Dashboard Directory Help
Search

Razor intellisense does not work in Visual Studio 2012 after upgrading to MVC 5 / Razor 3 by nwdavisMsConnect


Status: 

Closed
 as By Design Help for as By Design


51
0
Sign in
to vote
Type: Bug
ID: 806348
Opened: 10/23/2013 12:03:31 PM
Access Restriction: Public
2
Workaround(s)
view
23
User(s) can reproduce this bug

Description

After updating a solution to use MVC 5 / Razor 3, Visual studio intellisense no longer works for Razor views.

I made sure that all web.config files updated the versions as well, and ensured that the root web.config contained the appSettings <add key="webpages:Version" value="3.0.0.0" />

Visual Studio 2012 simply doesn't recognize the Razor syntax - intellisense appears to treat it as a plain html file.

I also tried installing Visual Studio 2012 Update 4 RC4, which did not change anything.
Details
Sign in to post a comment.
Posted by nwdavisMsConnect on 11/18/2013 at 4:51 PM
Thanks to those who posted the links to the update. I installed the update as well, and now MVC5 / Razor 3 tooling appears to be working.

Just a minor note: when installing the install package says "Visual Studio 2012 Express for Web with latest ASP.NET Framework and Web Developer Tools"

- which briefly made we wonder if I had downloaded the wrong package. However, I installed the package, and it updated Visual Studio 2012 Premium

(Update 4) just fine.
Posted by schpeyeder on 11/18/2013 at 12:26 PM
The fix for this has been released:

http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx

This will install the new WebApi 2 Templates, MVC 5 Templates, fix the Razor Tooling and other things. I have installed this and can confirm things are back to functioning. Enjoy!
Posted by Sewak on 11/17/2013 at 2:15 PM
It was mentioned a fix would be released mid-November - Any updates from Microsoft team on this?
Posted by rehoutm on 11/15/2013 at 1:37 AM
Is there any update on this issue? Update 4 for VS 2012 did not solve it.
Posted by nwdavisMsConnect on 11/12/2013 at 8:50 AM
An explanation from Microsoft for closing this item would be appreciated. Is it really Microsoft's intention to leave purchasers of Visual Studio 2012 out in the cold, or is the hearsay promise for VS 2012 tooling on stackoverflow actually a reality?
Posted by rubberbay on 11/4/2013 at 1:15 PM
Add menus also disappear when moving to MVC 5 in Visual Studio 2012:
https://connect.microsoft.com/VisualStudio/feedback/details/807712/add-menus-disappear-in-visual-studio-2012-after-upgrading-to-mvc-5-razor-3
Posted by mcm_ham on 10/24/2013 at 3:39 PM
Found this answer mentioned here: http://stackoverflow.com/a/19560412

"MVC 5/Razor 3 tooling support for VS 2012 has not shipped yet. We hope to ship this support in Mid November."
Posted by Microsoft on 10/24/2013 at 12:08 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 10/23/2013 at 12:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Bartmax on 11/18/2013 at 12:47 PM
you beat me by a second !! :D

http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx
Posted by schpeyeder on 11/18/2013 at 12:38 PM
Not sure that the actual fix is considered a "workaround", but for those of you that have a watch setup here, you may only get notified if there is a workaround posted...so here ya go.

http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx

This adds Razor Tooling, ASP.NET MVC 5 Templates, and WebApi 2 Templates (among other things) to Visual Studio 2012. I have installed this, tested my apps, and all is back to normal.

Enjoy!