Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reduced VS 2017 IDE interactivity in MVC 5 Razor views in 2015 project

I just installed VS 2017 and am opening an MVC 5 project created in VS 2015. The application runs fine, but I am experiencing reduced interactivity between my MVC Razor view code and the 2017 IDE.

Here's is the context menu when I right-click on an HTML helper method in VS 2015:

enter image description here

However, I only see this in 2017:

enter image description here

Also notice the lack of syntax color-coding in the 2017 verison. It's like it's not recognizing Razor syntax at all.

I did not do any special solution/project upgrades. I just opened the solution in 2017 and expected it to prompt me to upgrade any files that needed upgrading.

like image 896
oscilatingcretin Avatar asked Jun 01 '17 10:06

oscilatingcretin


1 Answers

So it turns out that the component installation for VS 2017 is modular in that you have to install exactly what you need. This is different from 2015 (at least as far as I recall) where all components are included with the installation.

I have a tendency not to read entire pages and just focus on what seems like the "most comprehensive" option. In my case, I selected only Universal Windows Platform development (doesn't that just sound like everything you'd need?). If I bothered to look at all the components, I would have seen ASP.NET and web development.

So, after modifying my installation, I am now seeing all the Razor syntax in my views.

like image 199
oscilatingcretin Avatar answered Nov 15 '22 04:11

oscilatingcretin