microsoft / xlang

MIT License
877 stars 103 forks source link

UndockedRegFreeWinrt requires the netfx3 feature on demand unnecessarily #779

Closed JohnMcPMS closed 1 year ago

JohnMcPMS commented 2 years ago

The use of CoCreateInstance here: https://github.com/microsoft/xlang/blob/be9c9c45774f945efde6c2efeaa1edcecfa175ea/src/UndockedRegFreeWinRT/UndockedRegFreeWinRT/catalog.cpp#L379

requires that the Windows feature on demand NetFX3 be present to function. Creation of a CLSID_CorMetaDataDispenser can be achieved in the same manner as the OS using MetaDataGetDispenser. This is part of the WinRT core, and so is always present.