Decreased interactivity of ID ID 2017 in MVC 5 Razor look at the 2015 project

I just installed VS 2017 and open the MVC 5 project created in VS 2015. The application works fine, but I experience limited interactivity between my MVC Razor code and the 2017 IDE.

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

enter image description here

However, I only see this in 2017:

enter image description here

Also note the lack of syntactic color coding in version 2017. As if it doesn't recognize Razor syntax at all.

I have not made any special solutions / projects. I just opened the solution in 2017 and expected it to offer me to update the files needed for the update.

+5
source share
3 answers

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

I tend to not read entire pages and just focus on what seems like the โ€œmost completeโ€ option. In my case, I only chose the Universal Windows Platform development (doesnโ€™t this look like everything you need?). If I bother to look at all the components, I would see ASP.NET and web development.

So, after changing my installation, now I see all the Razor syntax in my views.

+3
source

Restore the installation of Visual Studio. It happened to me.

+2
source

Go to the "Tools" menu and set up menus and ribbons

also see: https://msdn.microsoft.com/en-us/library/wdee4yb6.aspx

and or: https://msdn.microsoft.com/en-us/library/wdee4yb6(v=vs.110).aspx

try resetting your existing window layout or menu and options.

or restore VS

+1
source

Source: https://habr.com/ru/post/1268436/


All Articles