Add support for netcoreapp5.0 to micro benchmarks (dotnet/extensions#2190)

\n\nCommit migrated from 72bcb43aee
This commit is contained in:
Brennan 2019-08-16 13:47:32 -07:00 committed by GitHub
parent f9a052ec67
commit 591d6c13ec
1 changed files with 5 additions and 1 deletions

View File

@ -30,8 +30,12 @@ namespace BenchmarkDotNet.Attributes
Add(Job.Core
#if NETCOREAPP2_1
.With(CsProjCoreToolchain.From(NetCoreAppSettings.NetCoreApp21))
#else
#elif NETCOREAPP3_0
.With(CsProjCoreToolchain.From(new NetCoreAppSettings("netcoreapp3.0", null, ".NET Core 3.0")))
#elif NETCOREAPP5_0
.With(CsProjCoreToolchain.From(new NetCoreAppSettings("netcoreapp5.0", null, ".NET Core 5.0")))
#else
#error Target frameworks need to be updated.
#endif
.With(new GcMode { Server = true })
.With(RunStrategy.Throughput));