Visual Studio 2017 keeps crashing while it tries to open a c sharp file

As i mentioned in title, In Unity 2018.1.0b13 I am facing a irritating problem. When i try to open a C Sharp script on VS 2017 it keeps crashing and finally I cant edit the script. Any solutions ?

You can try to delete your csproj and sln files in your project folder and see if that helps.

I will say we had some issues with the 2018.1.0 b13. It wasn’t related to VS though, but build issues that the 2018.2 b1 didn’t have.

The official 2018.1 should hopefully be out this week since they mentioned April and currently have 2 beta versions up.

If VS always crashes when opening a script, try opening it directly and see what happens. You might need to reinstall or patch VS.

I know this is old but if anyone else is having this problem you should not have to reinstall anything just close visual studio if somehow still open and remove this directory:
%localappdata%\Microsoft\VisualStudio<version>\ComponentModelCache

Found via this link: Troubleshoot Visual Studio Tools for Unity | Microsoft Learn

3 Likes