Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 Not Opening *.cshtml files

I cannot figure out why Visual Studio is not opening CSHTML files. The error message I get this:

The document cannot be opened. It has been renamed, deleted or moved.

The file exists. I can change the extension to .html and open the file no problem. If I change the extension back to .cshtml with the file still open it lets me modify it. If I close the file and try to open it again I get the above message. Every other file type will open except .cshtml. Any help would be GREATLY appreciated!!

**** UPDATE ****

Figured out that it has something to do with the HTML Editor used by default for .cshtml files. If I right click, open with... and select a different editor, it will open but I lose all intellisense and it doesn't recognize any of the razor syntax. Installing Update 4 for VS 2013 to see if that works.

like image 923
Tim Southard Avatar asked Nov 10 '22 19:11

Tim Southard


1 Answers

Just Install Visual Studio 2013 Update 5, this will solve the problem

like image 170
Marouane Afroukh Avatar answered Dec 19 '22 04:12

Marouane Afroukh