When I open a script in Unity with Visual Studio. The Solution Explorer shows Assembly-CSharp(unloaded). And the Build button I use to build my solution is missing.
Is there any way I can solve this?
When I open a script in Unity with Visual Studio. The Solution Explorer shows Assembly-CSharp(unloaded). And the Build button I use to build my solution is missing.
Is there any way I can solve this?
I know that this is a relatively old question, but it was the first hit on Google when I tried to find a solution for this problem myself, so I’m answering it anyway.
The following steps worked for me:
Close VisualStudio.
Close Unity.
Make a backup of your project folder.
Delete everything in your project folder except for the Assets, Packages, ProjectSettings and UserSettings folders.
Reopen your Unity project.
Unity will then generate new versions of everything you just deleted and everything should work as normal again.
This is probably overkill; I’m guessing that deleting only VisualStudio-related stuff will also do the trick, but I didn’t bother to try.