Skip to content

Commit 2c82e22

Browse files
React to changes in CoreRT (#6833)
* The version was bumped to 7.0 * Configuring for trimming is temporarily more complicated (until we can update to .NET 6.0).
1 parent 2fd58c9 commit 2c82e22

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

frameworks/CSharp/aspnetcore-corert/PlatformBenchmarks/PlatformBenchmarks.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77

88
<!-- Opt out of the "easy mode" of the CoreRT compiler (http://aka.ms/OptimizeCoreRT) -->
9-
<TrimMode>link</TrimMode>
109
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
1110
<IlcPgoOptimize>true</IlcPgoOptimize>
1211

@@ -27,6 +26,15 @@
2726

2827
<ItemGroup>
2928
<PackageReference Include="Utf8Json" Version="1.3.7" />
30-
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="6.0.0-*" />
29+
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="7.0.0-*" />
3130
</ItemGroup>
31+
32+
<Target Name="ConfigureTrimming"
33+
BeforeTargets="PrepareForILLink">
34+
<ItemGroup>
35+
<ManagedAssemblyToLink>
36+
<TrimMode>link</TrimMode>
37+
</ManagedAssemblyToLink>
38+
</ItemGroup>
39+
</Target>
3240
</Project>

0 commit comments

Comments
 (0)