From 54aa653166c36a9841d2e32b910537a5fa582873 Mon Sep 17 00:00:00 2001 From: Johan Laanstra Date: Sun, 20 Oct 2019 23:27:25 -0700 Subject: [PATCH] The CppWinRTAddXamlReferences/CppWinRTSetXamlLocalAssembly targets should only execute if the xaml language is CppWinRT. The CppWinRTAddXamlReferences/CppWinRTSetXamlLocalAssembly targets should only execute if the xaml language is CppWinRT. Currently this also affects CX projects and since the winmd files are not yet available by the time this target runs, it causes non-determinism for subsequent builds when files do exist. --- nuget/Microsoft.Windows.CppWinRT.targets | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nuget/Microsoft.Windows.CppWinRT.targets b/nuget/Microsoft.Windows.CppWinRT.targets index 8f1ff0a63..722ef9d32 100644 --- a/nuget/Microsoft.Windows.CppWinRT.targets +++ b/nuget/Microsoft.Windows.CppWinRT.targets @@ -535,7 +535,9 @@ $(XamlMetaDataProviderPch) - + @@ -543,7 +545,9 @@ $(XamlMetaDataProviderPch) - + $(CppWinRTProjectWinMD)