Skip to content

Commit 1859d0f

Browse files
Merge pull request #2042 from br3aker/dp/benchmark-warning
BenchmarkDotNet config obsolete method usage fix
2 parents 6285738 + 418ddd0 commit 1859d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ImageSharp.Benchmarks/Config.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ public class MultiFramework : Config
3434
public MultiFramework() => this.AddJob(
3535
Job.Default.WithRuntime(ClrRuntime.Net472),
3636
Job.Default.WithRuntime(CoreRuntime.Core31),
37-
Job.Default.WithRuntime(CoreRuntime.Core50).With(new Argument[] { new MsBuildArgument("/p:DebugType=portable") }));
37+
Job.Default.WithRuntime(CoreRuntime.Core50).WithArguments(new Argument[] { new MsBuildArgument("/p:DebugType=portable") }));
3838
}
3939

4040
public class ShortMultiFramework : Config
4141
{
4242
public ShortMultiFramework() => this.AddJob(
4343
Job.Default.WithRuntime(ClrRuntime.Net472).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3),
4444
Job.Default.WithRuntime(CoreRuntime.Core31).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3),
45-
Job.Default.WithRuntime(CoreRuntime.Core50).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3).With(new Argument[] { new MsBuildArgument("/p:DebugType=portable") }));
45+
Job.Default.WithRuntime(CoreRuntime.Core50).WithLaunchCount(1).WithWarmupCount(3).WithIterationCount(3).WithArguments(new Argument[] { new MsBuildArgument("/p:DebugType=portable") }));
4646
}
4747

4848
public class ShortCore31 : Config

0 commit comments

Comments
 (0)