@@ -309,13 +309,6 @@ $(CsWinRTInternalProjection)
309
309
</ItemGroup >
310
310
</Target >
311
311
312
- <ItemGroup >
313
- <RuntimeHostConfigurationOption Include =" CsWinRT.UiXamlMode" Condition =" '$(CsWinRTUiXamlMode)' != ''" >
314
- <Value >$(CsWinRTUiXamlMode)</Value >
315
- <Trim >true</Trim >
316
- </RuntimeHostConfigurationOption >
317
- </ItemGroup >
318
-
319
312
<Import Project =" $(MSBuildThisFileDirectory)Microsoft.Windows.CsWinRT.Prerelease.targets" Condition =" Exists('$(MSBuildThisFileDirectory)Microsoft.Windows.CsWinRT.Prerelease.targets')" />
320
313
<Import Project =" $(MSBuildThisFileDirectory)Microsoft.Windows.CsWinRT.Authoring.targets" Condition =" '$(CsWinRTComponent)' == 'true'" />
321
314
<Import Project =" $(MSBuildThisFileDirectory)Microsoft.Windows.CsWinRT.IIDOptimizer.targets" Condition =" '$(CsWinRTIIDOptimizerOptOut)' != 'true'" />
@@ -328,7 +321,11 @@ $(CsWinRTInternalProjection)
328
321
<CsWinRTEnableICustomPropertyProviderSupport Condition =" '$(CsWinRTEnableICustomPropertyProviderSupport)' == ''" >true</CsWinRTEnableICustomPropertyProviderSupport >
329
322
<CsWinRTEnableIReferenceSupport Condition =" '$(CsWinRTEnableIReferenceSupport)' == ''" >true</CsWinRTEnableIReferenceSupport >
330
323
<CsWinRTEnableIDynamicInterfaceCastableSupport Condition =" '$(CsWinRTEnableIDynamicInterfaceCastableSupport)' == ''" >true</CsWinRTEnableIDynamicInterfaceCastableSupport >
331
- <CsWinRTUseWindowsUIXamlProjections Condition =" '$(CsWinRTUseWindowsUIXamlProjections)' == ''" >false</CsWinRTUseWindowsUIXamlProjections >
324
+
325
+ <!--
326
+ Note: the 'CsWinRTUseWindowsUIXamlProjections' property and associated 'CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS' feature
327
+ switch are set by the .NET SDK, so that the right projection mode is enabled even when CsWinRT is not directly referenced.
328
+ -->
332
329
</PropertyGroup >
333
330
334
331
<!-- Default values for all other CsWinRT properties (without feature switches) -->
@@ -371,11 +368,6 @@ $(CsWinRTInternalProjection)
371
368
<RuntimeHostConfigurationOption Include =" CSWINRT_ENABLE_IDYNAMICINTERFACECASTABLE"
372
369
Value =" $(CsWinRTEnableIDynamicInterfaceCastableSupport)"
373
370
Trim =" true" />
374
-
375
- <!-- CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS switch -->
376
- <RuntimeHostConfigurationOption Include =" CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS"
377
- Value =" $(CsWinRTUseWindowsUIXamlProjections)"
378
- Trim =" true" />
379
371
</ItemGroup >
380
372
381
373
</Project >
0 commit comments