How .NET Native toolchain treat managed .winmd component libraries in detail?
I know that .NET Native merge all managed code from DLLs into one executable and remove unused code when compiling it into native.
But what algorithm is used for .winmd managed libraries? For example, background tasks (such as audio background task) in WinRT are hosted in winmd library and then these tasks are hosted within system-provided native process which dynamically invoke winmd provided classes. How is it compatible with .NET Native concept?
I'm worry that .NET Native might not convert managed .winmd code to native and environment will fallback to .NET runtime to execute code in managed winmd, so abandoning benefits of native compiled executable. Or how is it works?
Please, provide information on this not so clear matter. In MSDN documentation there is no detailed information on managed winmd component libraries and .NET Native toolchain.