On Wed Jun 18 12:17:55 2025 +0000, Hans Leidekker wrote:
midlrt requires you to pass a 'platform metadata directory'. I suspect it uses that to resolve imported types.
IUnknown is not accepted by midlrt but if I use an IInspectable parameter and pass an empty metadata dir I get an error: Could not load required metadata file. If I copy system windows.foundation.winmd to that directory the idl file compiles successfully. So it does appear to use that directory to resolve IInspectable at least.