RootAllApplicationAssemblies -> TrimMode

According docs https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/optimizing.md RootAllApplicationAssemblies: false isn't more valid and must be replaced by TrimMode: link.

It prevents warnings and reduces at leas to half of RAM consumption at compilation process.
This commit is contained in:
Joseph Moreno 2021-01-27 08:21:30 -05:00
parent 48d100013b
commit c283769b54

View File

@ -8,7 +8,8 @@
<PropertyGroup>
<!-- these can help when debugging weird exceptions especially when reflection is involved. See https://github.com/dotnet/corert/blob/master/Documentation/using-corert/optimizing-corert.md -->
<RootAllApplicationAssemblies>false</RootAllApplicationAssemblies>
<!--RootAllApplicationAssemblies: False -> TrimMode:link See https://github.com/dotnet/runtimelab/issues/597 and https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/optimizing.md -->
<TrimMode>link</TrimMode>
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
<IlcDisableUnhandledExceptionExperience>true</IlcDisableUnhandledExceptionExperience>