Problem opening .cshtml files

Hi Spartai,

Welcome to MSDN forum.

What is the version of your Visual Studio? It`s works fine for me with Visual Studio 2015 update 3. Since we could not sure the reason for this issue, I would like give you some troubleshootings to resolve this issue:

1. Running visual studio as a administrator.

2. Check if you have install any other extension, for example, Xamarin. Please open an administrative CMD window and navigate to C:Program Files (x86)Microsoft Visual Studio2017CommunityCommon7IDE and run the command: devenv /safemode, if it works and it looks like this issue caused by the extensions, you need to deactivated that extension.

3. If this issue still persist, please try to repair or reinstall your Visual Studio, check if it works fine.

Hope this can help you. 


MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

原文地址:https://www.cnblogs.com/Jeely/p/10966412.html