I recently upgraded to 2022.3.20f1 and get the following stack trace when I play the game after attaching a debugger:
FileNotFoundException: Could not load file or assembly 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) (at <dc753a1061284f8e971ee88ee4826eee>:0)
System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) (at <dc753a1061284f8e971ee88ee4826eee>:0)
System.RuntimeType.GetCustomAttributes (System.Type attributeType, System.Boolean inherit) (at <dc753a1061284f8e971ee88ee4826eee>:0)
UnityEditor.ObjectNames+InspectorTitles..cctor () (at <5d5ebefe97114215928ac1d9cd096522>:0)
Rethrow as TypeInitializationException: The type initializer for 'InspectorTitles' threw an exception.
UnityEditor.ObjectNames.GetInspectorTitle (UnityEngine.Object obj, System.Boolean multiObjectEditing) (at <5d5ebefe97114215928ac1d9cd096522>:0)
UnityEditor.ObjectNames.GetInspectorTitle (UnityEngine.Object obj) (at <5d5ebefe97114215928ac1d9cd096522>:0)
UnityEditor.UIElements.EditorElement.Init () (at <5d5ebefe97114215928ac1d9cd096522>:0)
UnityEditor.UIElements.EditorElement..ctor (System.Int32 editorIndex, UnityEditor.IPropertyView iw, System.Boolean isCulled) (at <5d5ebefe97114215928ac1d9cd096522>:0)
UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at <5d5ebefe97114215928ac1d9cd096522>:0)
UnityEditor.PropertyEditor.RebuildContentsContainers () (at <5d5ebefe97114215928ac1d9cd096522>:0)
UnityEditor.InspectorWindow.RedrawFromNative () (at <5d5ebefe97114215928ac1d9cd096522>:0)
This is using Rider’s Unity integration. Once this happens, everything else I do causes more of these errors. The inspector window stops working completely and I need to close the application in order to fix it. I’ve already reinstalled the Editor.