From d2a66776bb16e1da9dac60770c977e847485e24b Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Fri, 5 Apr 2024 13:15:18 -0700 Subject: [PATCH] Remove references to stale winmd files to fix incremental builds (#1404) 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"> - + + +