The project is an ASP.NET Core 1.0.0 MVC application.
As the title says - it seems ReSharper does not recognize and support Razor syntax in cshtml files at all, for me. I get no intellisense for Razor. Here is the sreenshot of Razor syntax in red and treated as errors:
I have googled for hours and this is the list of things I've found and tried (none have fixed the problem):
post on Stack Overflow - Manually return the intellisense power to VS throught the menu: ReSharper >> Enviroment >> IntelliSense >> General
post on Stack Overflow - which led me to: ReSharper intermittently showing red errors for valid Razor code : RSRP-455788. Incidentally my ReSharper version was exactly 10.0.2, hence I was very optimistic, this was the culprit. I updated to the latest 2016.1.2. Did not help.
post on Stack Overflow - Tried to clear the caches by deleting the files manually from your AppData directory: AppData\Local\JetBrains\Transient\ReSharperPlatformVs14\v05\SolutionCaches
post on Stack Overflow - Deleting the contents of this directory allows the IDE to recover: AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
post on Stack Overflow - even tried this, which kinda looks silly.
None of these helped.
I DO NOT want to try completely resetting the user data with: devenv.exe /resetuserdata. Unless it is for sure the only way to fix this. This would be way too much trouble to my liking :(
My system in short (if you need any additional info, let me know)
- win 8.1 x64
- Visual Studio 2015
- ReSharper Ultimate
- many other extensions
Thanks in advance for any help.