Skip to content

Commit 6c84755

Browse files
authored
Remove no-op MSBuild property assignments
1 parent 41873ef commit 6c84755

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Windows.targets

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,11 @@ Copyright (c) .NET Foundation. All rights reserved.
179179
<CsWinRTGenerateInteropAssembly Condition="'$(CsWinRTGenerateInteropAssembly)' == '' and '$(_TargetPlatformVersionUsesCsWinRT3)' == 'true'">true</CsWinRTGenerateInteropAssembly>
180180
<CsWinRTGenerateInteropAssembly Condition="'$(CsWinRTGenerateInteropAssembly)' == ''">false</CsWinRTGenerateInteropAssembly>
181181

182-
<!-- Default property values for 'cswinrtgen' -->
183-
<CsWinRTToolsDirectory Condition="'$(CsWinRTToolsDirectory)' == ''"></CsWinRTToolsDirectory>
184-
<CsWinRTToolsArchitecture Condition="'$(CsWinRTToolsArchitecture)' == ''"></CsWinRTToolsArchitecture>
182+
<!--
183+
Default property values for 'cswinrtgen'. Not setting 'CsWinRTToolsDirectory' and
184+
'CsWinRTToolsArchitecture' because the task can handle their default values on its
185+
own, and it will use that to automatically set the right directory and architecture.
186+
-->
185187
<CsWinRTGeneratorInteropAssemblyDirectory Condition="'$(CsWinRTGeneratorInteropAssemblyDirectory)' == ''">$(IntermediateOutputPath)</CsWinRTGeneratorInteropAssemblyDirectory>
186188
<CsWinRTGeneratorValidateWinRTRuntimeAssemblyVersion Condition="'$(CsWinRTGeneratorValidateWinRTRuntimeAssemblyVersion)' == ''">true</CsWinRTGeneratorValidateWinRTRuntimeAssemblyVersion>
187189
<CsWinRTGeneratorValidateWinRTRuntimeDllVersion2References Condition="'$(CsWinRTGeneratorValidateWinRTRuntimeDllVersion2References)' == ''">true</CsWinRTGeneratorValidateWinRTRuntimeDllVersion2References>

0 commit comments

Comments
 (0)