I am using .NET Core 2.1 to load an assembly calling Assembly.ReflectionOnlyLoadFrom(...)
but am getting a System.PlatformNotSupportedException
exception. Microsoft documentation seems to indicate that it should work. Has this been implemented? If not, are there any alternatives to get exported types from a .NET 4.7.2 assembly using .NET Core?
Assembly.ReflectionOnlyLoadFrom(fileName) 'Assembly.ReflectionOnlyLoadFrom(fileName)' threw an exception of type 'System.PlatformNotSupportedException' Data: {System.Collections.ListDictionaryInternal} HResult: -2146233031 HelpLink: null InnerException: null Message: "ReflectionOnly loading is not supported on this platform." Source: "System.Private.CoreLib" StackTrace: " at System.Reflection.Assembly.ReflectionOnlyLoadFrom(String assemblyFile)" TargetSite: {System.Reflection.Assembly ReflectionOnlyLoadFrom(System.String)}