Randomly (or so its felt so far), I’ll get a string of errors due to the Unity project losing references to every script in the Editor Folder (used for custom editors for inspector view).
To remedy the situation I have to:
Clear errors from the console
Run the game
Right-click on the editor folder
Wait for the re-import
Reload Visual Studios 2019 (Community)
Build in VS to verify it’s fixed
Continue development
This averages 5 - 10 times a day. Anyone else had this problem so far?
I think it’s the same issue. The “keep open one asmdef file in a fixed inspector and remove and add a reference randomly and apply” also works. Maybe it works for you as well? As a somewhat shorter workaround? It will kick off a recompile of the assembly, but maybe it is faster than the reimport?
For me, any two asmdefs can lose reference to another. Usually the last entry in the reference list as far as I observed. I got frustrated so I have removed my tests from my project for now because of this.