PowerShell / MMI

Other
24 stars 17 forks source link

MMI does not work with NativeAOT #54

Open prajaybasu opened 2 years ago

prajaybasu commented 2 years ago

Stack Trace

Unhandled exception!
      System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.
       ---> EETypeRva:0x00BAC1C8(System.Runtime.InteropServices.MissingInteropDataException): Microsoft.Management.Infrastructure.Native.DeserializerCallbacks+GetIncludedFileBufferAppDomainProxyDelegate is missing delegate marshalling data. To enable delegate marshalling data, add a MarshalDelegate directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
         at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetDelegateMarshallingStub(RuntimeTypeHandle, Boolean) + 0x92
         at System.Runtime.InteropServices.PInvokeMarshal.AllocateThunk(Delegate) + 0x7a
         at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValueLocked(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x26
         at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x3e
         at System.Runtime.InteropServices.PInvokeMarshal.GetFunctionPointerForDelegate(Delegate) + 0x92
         at <Module>.Microsoft.Management.Infrastructure.Native.MI_ApplicationWrapper_Initialize_Managed(_MI_ApplicationWrapper*) + 0x66