As a part of enabling support for ComWrappers on non-Windows platforms, the feature availability across platforms is now different.
Once the contents of #54838 are in place, non-Windows platforms will be allowed to use the IUnknown interfaces.
Currently, the following are Windows-only:
As a part of enabling support for
ComWrapperson non-Windows platforms, the feature availability across platforms is now different.Once the contents of #54838 are in place, non-Windows platforms will be allowed to use the
IUnknowninterfaces.Currently, the following are Windows-only:
Marshal.GetIUnknownForObject, respect the "Global registration" ofComWrappersbut currently those APIs are Windows only. We should enable allMarshalAPIs that support theComWrappersAPI.ComWrappersis currently marked as only supported on Windows:runtime/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ComWrappers.cs
Lines 72 to 74 in a6b9a63
ComWrappersclassRegisterForMarshallingmethod as only supported on windows (based on the lack of marshalling with the global instance above)