Closed
Description
Reproduction steps
On a new LinqPad query, add the LibGit2Sharp
NuGet package, and try to perform any operation using the Repository
class, such as a simple check with Repository.IsValid()
.
e.g.
void Main()
{
Console.WriteLine(Repository.IsValid(@"C:\Temp\"));
}
Expected behavior
Output True
or False
depending if C:\Temp
is a valid Git repo.
Actual behavior
Exception thrown:
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
Unable to load DLL 'git2-572e4d8': The specified module could not be found. (Exception from HRESULT: 0x8007007E | Unable to load DLL 'git2-572e4d8': The specified module could not be found. (Exception from HRESULT: 0x8007007E
Version of LibGit2Sharp (release number or SHA1)
Operating system(s) tested; .NET runtime tested
- Windows 7
- .NET Framework 4.7.2
- LinqPad 5.36.03
/cc @albahari
Metadata
Metadata
Assignees
Labels
No labels