microsoft / cppwinrt

C++/WinRT
MIT License
1.61k stars 232 forks source link

Fix CppWinRTAddXamlReferences to not use outputs as inputs #1381

Closed Scottj1s closed 6 months ago

Scottj1s commented 6 months ago

Incremental builds fail when a referenced project's winmd has been updated. This is because the CppWinRT reference projection is properly using project's referenced winmds as inputs. But the MarkupCompilePass2 target is using XamlReferencesToCompile, which has been set here to use previously copied output files.