-
-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.MissingMethodException: Method not found: 'System.String Perfolizer.Horology.TimeInterval.ToString(System.Globalization.CultureInfo, System.String, Perfolizer.Common.UnitPresentation)' #2358
Comments
@jwosty the current stable version of BenchmarkDotNet (v0.13.5) references Perfolizer 0.2.1. You can't use other versions of Perfolizer in the same project. I'm planning to update the Perfolizer reference to the latest version, but it's still an in-progress activity.
What changed recently? Do I understand correctly that you added an explicit reference to Perfolizer 0.3.4? |
@AndreyAkinshin What changed is that I did a If BenchmarkDotNet is tied to particular Perfolizer versions, changing the constraint to |
@jwosty thanks for the idea! I have locked the perfolizer reference. The fix will be available in v0.13.6. |
What's the last know good combination of versions for BenchmarkDotNet, BenchmarkDotNet.Annotations and Perfolizer (and possibly their dependencies)? I'm having trouble getting things running again... Using
I'm getting the Runtime Exception Using 0.13.5 or 0.13.6 on both BenchmarkDotNet and BenchmarkDotNet.Annotations doesn't seem to change anything significantly. |
@Matthias-Heinz the correct version of Perfolizer for the latest BenchmarkDotNet (0.13.7) is 0.2.1. I have no idea how you got a reference on 0.3.4. Do you have a repro solution for your problem? |
@AndreyAkinshin During the creation of the sample solution, which is working except for issue #2405, I've managed to track down the issue at hand: My App.config had some reference to version 0.3.4.
As for the root cause, I can only speculate: Probably we've had some intermittent version of BenchmarkDotNet installed, which did allow Perfolizer 0.3.4.0 to be used (maybe BenchmarkDotNet 0.13.5 using Perfolizer 0.3.4 as mentioned by @jwosty in this thread). And whilst manually fixing the dependencies during the upgrade to BenchmarkDotNet 0.13.7 (because an automatic update would fail to the higher version of Perfolizer), the App.config did not automatically restrict to Perfolizer 0.2.1. |
@Matthias-Heinz thanks for the update! It seems, there are no additional actions required. |
BenchmarkDotNet was working in my project until recently. Now, my benchmarks are failing with:
BenchmarkDotNet resolved to 0.13.5, and Perfolizer resolved to 0.3.4.
Workaround
Explicitly reference Perfolizer 0.2.1. Looks like a recent version of Perfolizer has a breaking change.
The text was updated successfully, but these errors were encountered: