I have a class in my project which is used to find all classes or interfaces that derive from a given type.
If Odin is present in the Unity project, using this class to find derived classes becomes impossible because as soon as Assembly.GetExportedTypes gets called, a NotSupportedException gets thrown:
NotSupportedException: The invoked member is not supported in a dynamic module. System.Reflection.Emit.AssemblyBuilder.GetExportedTypes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs:680)
Removing Odin from the project fixes the issue.
The exception is thrown at line 39 of the attached document.