Skip to content

Commit 9fc5cec

Browse files
Do not delete (clean) a file not written by this target (fixes #1173). (#1174)
Co-authored-by: Kenny Kerr <[email protected]>
1 parent 36567e6 commit 9fc5cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
132132
<_FilesToDelete Include="$(GeneratedFilesDir)**"/>
133133
<_FilesToDelete Include="$(CppWinRTMergedDir)**"/>
134134
<_FilesToDelete Include="$(CppWinRTUnmergedDir)**"/>
135-
<_FilesToDelete Include="$(CppWinRTProjectWinMD)"/>
135+
<_FilesToDelete Include="$(CppWinRTProjectWinMD)" Condition="'$(CppWinRTGenerateWindowsMetadata)' == 'true'"/>
136136
</ItemGroup>
137137
<Delete Files="@(_FilesToDelete)"/>
138138
</Target>

0 commit comments

Comments
 (0)