For those who are crazy like me, trying to fix this problem, the solution for me was in web.config. I set the value of webpages:Version to 3.0.0.0 . Now I can open the cshtml files again.
<appSettings> <add key="webpages:Version" value="3.0.0.0" /> </appSettings>
source share