Skip to content

Commit c63fe84

Browse files
Update message to not suggest an obsolete API (#1590)
Update the hint for non-optimised methods to use the `WithOptions(ConfigOptions)` method, rather than the obsolete `With(ConfigOptions)` overload.
1 parent 8149c36 commit c63fe84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet/Validators/JitOptimizationsValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public IEnumerable<ValidationError> Validate(ValidationParameters validationPara
3232
TreatsWarningsAsErrors,
3333
$"Assembly {group.Key.GetName().Name} which defines benchmarks references non-optimized {referencedAssemblyName.Name}" +
3434
$"{Environment.NewLine}\tIf you own this dependency, please, build it in RELEASE." +
35-
$"{Environment.NewLine}\tIf you don't, you can disable this policy by using 'config.With(ConfigOptions.DisableOptimizationsValidator)'.");
35+
$"{Environment.NewLine}\tIf you don't, you can disable this policy by using 'config.WithOptions(ConfigOptions.DisableOptimizationsValidator)'.");
3636
}
3737
}
3838

0 commit comments

Comments
 (0)