My Razor views in VS2015 RC are not showing the proper coloring for C# code. My project was working fine in VS2013, but it isn't in 2015, and it's not giving me any Intellisense on the C# code. The solution builds and the site runs fine.
I tried the following to no avail
- disabling all Visual Studio extensions
- deleting my
.suo
file - removing the project and re-adding it to the solution
How can I fix this?
Example:
You should only remove the ".vs" folder in your project.(The .vs folder is hidden)
Be careful
ResetUserData
remove all customization on Visual Studio.I had the same problem and had to download and install "Microsoft ASP.NET and Web Tools" and "Web Essentials". After doing this syntax highlighting and Razor intellisense started working again.
Above doesn't work but I managed with:
Web Developer Tools
for VS 2015, RC, Update 1Web Developer Tools
(it's another version of above)So the problem was that VS installer didn't install Web Developer Tools recognizing already installed, incompatible version as the proper one.
I installed Visual Studio Community Edition 2015 (after using Visual Studio Community Edition 2013 for a long time) and faced the same issue. I tried all the above solutions but nothing helped.
Finally, close Visual studio and deleted the following folders -
... and it works now!!!
After Updating Visual Studio 2015 Update 1 I had same issue. I tried all the answers but did not work for me.
The fix for me was going to programs and properties > Visual Studio community edition > Change. I clicked on modify.
In the list make sure to put a check mark on "Microsoft Web Developer Tools" under "Windows and Web Development" .
It was not checked in my list howewer :/
The only thing that worked for me was to change the project's "Output Path" to
bin\
(It used to bebin\Debug
):Properties
and navigate toBuild
,Output path:
tobin\