Add CsWinRT size saving options to sample

このコミットが含まれているのは:
Sergio Pedri committed 2024-06-30 14:31:50 -07:00
1 親 e2756fa24c
コミット 5297913ba6
1ファイル変更
+12 -3
+12 -3
ファイルの表示
@@ -4,18 +4,27 @@
<WindowsSdkPackageVersion>10.0.22621.35-preview</WindowsSdkPackageVersion>
<Platforms>x64;ARM64</Platforms>
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
</PropertyGroup>
<PropertyGroup>
<CsWinRTComponent>true</CsWinRTComponent>
<!-- CsWinRT size saving options (also disabling some features that aren't needed) -->
<CsWinRTEnableDynamicObjectsSupport>false</CsWinRTEnableDynamicObjectsSupport>
<CsWinRTUseExceptionResourceKeys>true</CsWinRTUseExceptionResourceKeys>
<CsWinRTEnableDefaultCustomTypeMappings>false</CsWinRTEnableDefaultCustomTypeMappings>
<CsWinRTEnableICustomPropertyProviderSupport>false</CsWinRTEnableICustomPropertyProviderSupport>
<CsWinRTEnableIReferenceSupport>false</CsWinRTEnableIReferenceSupport>
<CsWinRTEnableIDynamicInterfaceCastableSupport>false</CsWinRTEnableIDynamicInterfaceCastableSupport>
</PropertyGroup>
<!-- NativeAOT configuration (same as in ComputeSharp.NativeLibrary, see notes there) -->
<!-- NativeAOT configuration -->
<PropertyGroup>
<PublishAot>true</PublishAot>
<UseSystemResourceKeys>true</UseSystemResourceKeys>
<InvariantGlobalization>true</InvariantGlobalization>
<OptimizationPreference>Size</OptimizationPreference>
<StackTraceSupport>false</StackTraceSupport>
<IlcFoldIdenticalMethodBodies>false</IlcFoldIdenticalMethodBodies>
<IlcDisableReflection>false</IlcDisableReflection>
<IlcGenerateMstatFile>false</IlcGenerateMstatFile>
<IlcGenerateDgmlFile>false</IlcGenerateDgmlFile>
</PropertyGroup>