Skip to content
45 changes: 9 additions & 36 deletions nuget/Microsoft.Windows.CsWinRT.targets
Original file line number Diff line number Diff line change
Expand Up @@ -568,14 +568,10 @@ $(CsWinRTInternalProjection)

<!-- Default values for all custom CsWinRT runtime feature switches -->
<PropertyGroup>
<CsWinRTEnableDynamicObjectsSupport Condition="'$(CsWinRTEnableDynamicObjectsSupport)' == ''">true</CsWinRTEnableDynamicObjectsSupport>
<CsWinRTUseExceptionResourceKeys Condition="'$(CsWinRTUseExceptionResourceKeys)' == ''">false</CsWinRTUseExceptionResourceKeys>
<CsWinRTEnableDefaultCustomTypeMappings Condition="'$(CsWinRTEnableDefaultCustomTypeMappings)' == ''">true</CsWinRTEnableDefaultCustomTypeMappings>
<CsWinRTEnableICustomPropertyProviderSupport Condition="'$(CsWinRTEnableICustomPropertyProviderSupport)' == ''">true</CsWinRTEnableICustomPropertyProviderSupport>
<CsWinRTEnableIReferenceSupport Condition="'$(CsWinRTEnableIReferenceSupport)' == ''">true</CsWinRTEnableIReferenceSupport>
<CsWinRTEnableIDynamicInterfaceCastableSupport Condition="'$(CsWinRTEnableIDynamicInterfaceCastableSupport)' == ''">true</CsWinRTEnableIDynamicInterfaceCastableSupport>
<CsWinRTEnableManifestFreeActivation Condition="'$(CsWinRTEnableManifestFreeActivation)' == ''">true</CsWinRTEnableManifestFreeActivation>
<CsWinRTManifestFreeActivationReportOriginalException Condition="'$(CsWinRTManifestFreeActivationReportOriginalException)' == ''">false</CsWinRTManifestFreeActivationReportOriginalException>
<CsWinRTEnableXamlTypeMarshalling Condition="'$(CsWinRTEnableXamlTypeMarshalling)' == ''">true</CsWinRTEnableXamlTypeMarshalling>
<CsWinRTLoadComponentsInDefaultALC Condition="'$(CsWinRTLoadComponentsInDefaultALC)' == ''">false</CsWinRTLoadComponentsInDefaultALC>

<!--
Expand All @@ -584,39 +580,11 @@ $(CsWinRTInternalProjection)
-->
</PropertyGroup>

<!--
Configuration for the feature switches (to support IL trimming).
See the 'ILLink.Substitutions.xml' file for more details on that.
-->
<!-- Configuration for the feature switches (to support IL trimming) -->
<ItemGroup>

<!-- CSWINRT_ENABLE_DYNAMIC_OBJECTS_SUPPORT switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_ENABLE_DYNAMIC_OBJECTS_SUPPORT"
Value="$(CsWinRTEnableDynamicObjectsSupport)"
Trim="true" />

<!-- CSWINRT_USE_EXCEPTION_RESOURCE_KEYS switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_USE_EXCEPTION_RESOURCE_KEYS"
Value="$(CsWinRTUseExceptionResourceKeys)"
Trim="true" />

<!-- CSWINRT_ENABLE_DEFAULT_CUSTOM_TYPE_MAPPINGS switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_ENABLE_DEFAULT_CUSTOM_TYPE_MAPPINGS"
Value="$(CsWinRTEnableDefaultCustomTypeMappings)"
Trim="true" />

<!-- CSWINRT_ENABLE_ICUSTOMPROPERTYPROVIDER_SUPPORT switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_ENABLE_ICUSTOMPROPERTYPROVIDER_SUPPORT"
Value="$(CsWinRTEnableICustomPropertyProviderSupport)"
Trim="true" />

<!-- CSWINRT_ENABLE_IREFERENCE_SUPPORT switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_ENABLE_IREFERENCE_SUPPORT"
Value="$(CsWinRTEnableIReferenceSupport)"
Trim="true" />

<!-- CSWINRT_ENABLE_IDYNAMICINTERFACECASTABLE switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_ENABLE_IDYNAMICINTERFACECASTABLE"
<!-- CSWINRT_ENABLE_IDYNAMICINTERFACECASTABLE_SUPPORT switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_ENABLE_IDYNAMICINTERFACECASTABLE_SUPPORT"
Value="$(CsWinRTEnableIDynamicInterfaceCastableSupport)"
Trim="true" />

Expand All @@ -629,6 +597,11 @@ $(CsWinRTInternalProjection)
<RuntimeHostConfigurationOption Include="CSWINRT_MANIFEST_FREE_ACTIVATION_REPORT_ORIGINAL_EXCEPTION"
Value="$(CsWinRTManifestFreeActivationReportOriginalException)"
Trim="true" />

<!-- CSWINRT_ENABLE_XAML_TYPE_MARSHALLING switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_ENABLE_XAML_TYPE_MARSHALLING"
Value="$(CsWinRTEnableXamlTypeMarshalling)"
Trim="true" />

<!-- CSWINRT_LOAD_COMPONENTS_IN_DEFAULT_ALC switch -->
<RuntimeHostConfigurationOption Include="CSWINRT_LOAD_COMPONENTS_IN_DEFAULT_ALC"
Expand Down
Loading
Loading