Hi. I found that when using both Code Analysis and Memory Profiler packages, it throws ReflectionTypeLoadException at every editor open and script recompilation.
It can be easily reproduced by following steps:
- Create empty project.
- Add following packages to manifest.json
“com.unity.visualscripting.entities”: “0.2.3-preview”,
“com.unity.memoryprofiler”: “0.2.0-preview.1”, - You can see ReflectionTypeLoadException in editor console.
I think that Roslyn DLLs in com.unity.code-analysis packages makes that exception, but not sure.