Then, conditionally compile modules only if the containing assembly is selected and strip out (i.e. conditionally disable) any methods that depend on type definitions from other assemblies.
To keep the right VTables, we need to replace disabled methods with dummy methods, because VTable slots depend entirely on the order of declarations.
Windows.Foundation is intentionally missing from the list above, because it should be unconditionally enabled, since basically everything else depends on it and it is quite small.
Add a feature flag for each WinRT
winmd
file, likeThen, conditionally compile modules only if the containing assembly is selected and strip out (i.e. conditionally disable) any methods that depend on type definitions from other assemblies. To keep the right VTables, we need to replace disabled methods with dummy methods, because VTable slots depend entirely on the order of declarations.