-
Notifications
You must be signed in to change notification settings - Fork 899
libgit2sharp is not working on latest version of LinqPad #1670
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
Comments
What is the latest version of LibGit2Sharp that works? |
@bording Version |
@caioproiete The reason you're seeing that is that #1563 changed the behavior around how we find the native binary. We used to modify the PATH environment variable, but now we no longer do that. I believe LINQPad currently modifies the PATH to get native binaries loaded correctly, so that no longer works for LibGit2Sharp. There is a I think we could make some changes here to allow you to pass in the path to LINQPad's on-disk copy of the binary, but in the mean time, you're going to need to stick with 0.25.4 if you want to use it from LINQPad. |
This has been fixed in newer versions of LinqPad and LibGit2Sharp works as expected (at least) on LinqPad v6.10.13 (x64) |
Reproduction steps
On a new LinqPad query, add the
LibGit2Sharp
NuGet package, and try to perform any operation using theRepository
class, such as a simple check withRepository.IsValid()
.e.g.
Expected behavior
Output
True
orFalse
depending ifC:\Temp
is a valid Git repo.Actual behavior
Exception thrown:
Version of LibGit2Sharp (release number or SHA1)
0.26.2
Operating system(s) tested; .NET runtime tested
/cc @albahari
The text was updated successfully, but these errors were encountered: