For reason now every time I open ANY script from my Unity project, goes to Visual Studio as expected, and then after a few seconds it crashes, it says that “Visual Studio is not repsonding” on top of the screen and then it closes out.
I really don’t know why, literally, my project has been going for various months and all was working good, this never happend until now. When testing my game inside Unity all is good, it’s only when I open a script in Visual Studio to modify something.
What can I do? Has anyone has experienced this before?
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.
go to “Tools” in VS, then uninstall Games With Unity or whatever its called and re-install it, itll clean up your current. before you reinstall delete the TEMP folder and restart your pc. to clear the past versions.
Alright, so I did reinstall everything, and updated it in package manager (indeed it needed an update), but still, only difference is that this time it survided a few seconds longer before crashing.
Hey, not sure if still relevant but for future people with the same issue. For me, I had a power outage in the middle of scripting and once I reopened the Unity project Visual Studio would refuse to stay open for longer than a few seconds. It seems to be a Visual Studio related bug tough, not Unity.
My solution was to go to C:/Users//AppData/Local/Microsoft and delete the entire VSCommon foldier. After that it worked. You might have to relogin or stuff.
You can try doing a clean install. Uninstall Visual Studio including every preference and other files related to it (except for your projects) and then install it again.