Editor Folder periodically loses assembly references, which requires a re-import of Editor Folder

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:

  1. Clear errors from the console
  2. Run the game
  3. Right-click on the editor folder
  4. Wait for the re-import
  5. Reload Visual Studios 2019 (Community)
  6. Build in VS to verify it’s fixed
  7. Continue development

This averages 5 - 10 times a day. Anyone else had this problem so far?

I have a bug reported: case #1255436

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.