-
Notifications
You must be signed in to change notification settings - Fork 890
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.InvalidOperationException : A resolver is already set for the assembly. #1855
Comments
Where is this |
Ok, the callstack for the original exception is:
The LibGit2Sharp part of this stack includes: libgit2sharp/LibGit2Sharp/Core/NativeMethods.cs Lines 123 to 125 in 3d72762
This stack includes a static constructor, so the guarantee should be that it only runs once. But maybe other code calls this Also of note, this problem only manifests on .NET Core (3.1 or 5.0). |
Ah yes, my own unit tests were calling that same |
After updating Nerdbank.GitVersioning to libgit2sharp 0.27.0-preview-0096, a great many of my tests are failing with this exception. Is it expected that
SetConfigSearchPaths
become callable-once-only?Originally posted by @AArnott in #1618 (comment)
The text was updated successfully, but these errors were encountered: