From 50689b2ba54209478f4b860e1a59d82e75cdee9c Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Thu, 4 Apr 2024 15:59:26 -0700 Subject: [PATCH] Remove references to stale winmd files to fix incremental builds The original attempt at a fix for this was too aggressive: https://github.com/microsoft/cppwinrt/pull/1381/files This fix is targeted specifically at removing references to stale winmd files that have yet to be copied from referenced projects (e.g., from a runtime component to an app). --- nuget/Microsoft.Windows.CppWinRT.targets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nuget/Microsoft.Windows.CppWinRT.targets b/nuget/Microsoft.Windows.CppWinRT.targets index f5606caec..4d861e12a 100644 --- a/nuget/Microsoft.Windows.CppWinRT.targets +++ b/nuget/Microsoft.Windows.CppWinRT.targets @@ -861,7 +861,9 @@ $(XamlMetaDataProviderPch) Condition="'@(Page)@(ApplicationDefinition)' != '' and '$(XamlLanguage)' == 'CppWinRT'" DependsOnTargets="$(CppWinRTAddXamlReferencesDependsOn);CppWinRTGetResolvedWinMD;GetCppWinRTProjectWinMDReferences"> - + + +