Our app uses third party library that is referencing mfplat.dll (and mfreadwrite.dll) of Media Foundation. MF dlls are usually present in the OS, except apparently on Windows N where media component is not installed by default. When launched on Windows N, our app closes instantly. Digging into the problem reveals a system error
The code execution cannot proceed because MFPlat.DLL was not found. Reinstalling the program may fix this problem.
As far as I can tell, the launch is being aborted at very early stages without giving any of our or the librarys code a chance to handle the error. Can't quite find a desription of initial dependency resolution process for UWP, but logically shouldn't absent-by-design system dependency turn into a runtime error to a LoadPackagedLibrary() call, where we could at least handle it gracefully?