Highlighting does not work in Razor MVC 5 views

Asked

Viewed 97 times

1

I’m with a Razor ASP.NET MVC 5 project that was created on VS2013 on another computer. Loading it on my computer with VS2012 Highlighting and Views Intellisense (cshtml) does not work.

I realized that my VS2012 did not have MVC 5, if I created a new project I did not have the option to create using MVC 5. So I installed Aspnet Webtools 2013_1, now I can create MVC 5 projects, but still Highlighting does not work.

Before doing this installation I did several other attempts #2, #3 besides others that I no longer have the links. I also repeated some of these attempts after the installation of Aspnet Webtools 2013_1.

For projects where I use MVC 4 everything works normally.

I downloaded on two other machines that also have VS2012 with similar configurations to mine and the same problem happens. On machines with VS2013 the problem does not occur.

Someone has been through something similar and has some hint to solve this problem?

  • Not even if you create a new MVC 5 project from scratch works?

  • @Miguelangelo Even creating from scratch does not work.

  • 1

    OMG! I doubt that changing Visual Studio is an option right!?

  • It is the company’s machine @Miguelangelo, this is not an option :( VS2013 where it was created is a third that was hired to act in the development also.

  • I just tested on another machine that apparently the VS2012 is exactly the same as mine and is working. I imported the settings to my VS but problem continues.

1 answer

0


The only way I could solve the problem was by installing VS2013. Maybe the 2012 reinstallation worked because on a machine that had this version with update 5 all features of MVC5 worked, but as I got the update I decided to install the 2013 version and avoid problems with other projects.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.