Skip to content

Commit

Permalink
Remove suppressions, enable CsWinRT size saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jun 28, 2024
1 parent 9c0fa8d commit 8385445
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@

<!-- Suppress warnings for using directives inside namespaces (needed to avoid some WinRT conflicts) -->
<NoWarn>$(NoWarn);IDE0065</NoWarn>

<!-- Workaround for WinRT.TypeExtensions.GetAuthoringMetadataType(Type) trim warning (see https://github.com/microsoft/CsWinRT/issues/1319) -->
<NoWarn>$(NoWarn);IL2104;IL2026</NoWarn>

<!-- Workaround for WinRT.Runtime and System.Linq.Expressions producing trim warnings -->
<NoWarn>$(NoWarn);IL3053</NoWarn>
</PropertyGroup>

<!-- CsWinRT size saving options (same as in ComputeSharp.NativeLibrary.WinRT) -->
<PropertyGroup>
<CsWinRTEnableDynamicObjectsSupport>false</CsWinRTEnableDynamicObjectsSupport>
<CsWinRTUseExceptionResourceKeys>true</CsWinRTUseExceptionResourceKeys>
<CsWinRTEnableDefaultCustomTypeMappings>false</CsWinRTEnableDefaultCustomTypeMappings>
<CsWinRTEnableICustomPropertyProviderSupport>false</CsWinRTEnableICustomPropertyProviderSupport>
<CsWinRTEnableIReferenceSupport>false</CsWinRTEnableIReferenceSupport>
<CsWinRTEnableIDynamicInterfaceCastableSupport>false</CsWinRTEnableIDynamicInterfaceCastableSupport>
</PropertyGroup>

<!-- Options for R2R publishing -->
Expand Down

0 comments on commit 8385445

Please sign in to comment.