File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Tasks/Microsoft.NET.Build.Tasks/targets Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,9 @@ Copyright (c) .NET Foundation. All rights reserved.
174174 <!--
175175 Running 'cswinrtgen' is required for CsWinRT 3.0, and it is currently in preview.
176176 So the switch for it is currently opt-in. It can be changed to opt-out in the future.
177+ We only enable this automatically if the project is explicitly targeting CsWinRT 3.0.
177178 -->
179+ <CsWinRTGenerateInteropAssembly Condition =" '$(CsWinRTGenerateInteropAssembly)' == '' and '$(_TargetPlatformVersionUsesCsWinRT3)' == 'true'" >true</CsWinRTGenerateInteropAssembly >
178180 <CsWinRTGenerateInteropAssembly Condition =" '$(CsWinRTGenerateInteropAssembly)' == ''" >false</CsWinRTGenerateInteropAssembly >
179181
180182 <!-- Default property values for 'cswinrtgen' -->
You can’t perform that action at this time.
0 commit comments