(Case 1214728) Code Analysis + Memory Profiler packages throws ReflectionTypeLoadException

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:

  1. Create empty project.
  2. Add following packages to manifest.json
    “com.unity.visualscripting.entities”: “0.2.3-preview”,
    “com.unity.memoryprofiler”: “0.2.0-preview.1”,
  3. You can see ReflectionTypeLoadException in editor console.

I think that Roslyn DLLs in com.unity.code-analysis packages makes that exception, but not sure.