From 7d5b4dc564e476d8108569a58e82a3a886b7fc10 Mon Sep 17 00:00:00 2001 From: David Matson Date: Sun, 7 Aug 2022 22:13:48 -0700 Subject: [PATCH] Do not delete (clean) a file not written by this target (fixes #1173). --- nuget/Microsoft.Windows.CppWinRT.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuget/Microsoft.Windows.CppWinRT.targets b/nuget/Microsoft.Windows.CppWinRT.targets index 7f27cd3c4..84464b624 100644 --- a/nuget/Microsoft.Windows.CppWinRT.targets +++ b/nuget/Microsoft.Windows.CppWinRT.targets @@ -132,7 +132,7 @@ Copyright (C) Microsoft Corporation. All rights reserved. <_FilesToDelete Include="$(GeneratedFilesDir)**"/> <_FilesToDelete Include="$(CppWinRTMergedDir)**"/> <_FilesToDelete Include="$(CppWinRTUnmergedDir)**"/> - <_FilesToDelete Include="$(CppWinRTProjectWinMD)"/> + <_FilesToDelete Include="$(CppWinRTProjectWinMD)" Condition="'$(CppWinRTGenerateWindowsMetadata)' == 'true'"/>