-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathNative.Build.props
28 lines (22 loc) Β· 1.1 KB
/
Native.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<Project>
<ItemGroup Condition="'$(Mode)' != ''">
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
</ItemGroup>
<PropertyGroup Condition="'$(Mode)' == 'CoreRT-Moderate' or '$(Mode)' == 'CoreRT-High' or '$(Mode)' == 'CoreRT-ReflectionFree'">
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
</PropertyGroup>
<PropertyGroup Condition="'$(Mode)' == 'CoreRT-High' or '$(Mode)' == 'CoreRT-ReflectionFree'">
<InvariantGlobalization>true</InvariantGlobalization>
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
<IlcFoldIdenticalMethodBodies>true</IlcFoldIdenticalMethodBodies>
</PropertyGroup>
<ItemGroup Condition="'$(Mode)' == 'CoreRT-High'">
<IlcArg Include="--removefeature:EventSource" />
<IlcArg Include="--removefeature:FrameworkStrings" />
</ItemGroup>
<PropertyGroup Condition="'$(Mode)' == 'CoreRT-ReflectionFree'">
<IlcTrimMetadata>true</IlcTrimMetadata>
<IlcDisableReflection>true</IlcDisableReflection>
</PropertyGroup>
</Project>