Skip to content

libgit2sharp is not working on latest version of LinqPad #1670

Closed
@augustoproiete

Description

@augustoproiete

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

image

Version of LibGit2Sharp (release number or SHA1)

0.26.2

Operating system(s) tested; .NET runtime tested

  • Windows 7
  • .NET Framework 4.7.2
  • LinqPad 5.36.03

/cc @albahari

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions