Search code examples
linqpadlibgit2sharp

Using libgit2sharp with LINQPad?


I have the LINQPad version with NuGet and I add libgit2sharp but this relies on a another (native) dll.

I've tried:

  • Copying them my systemdirectory.
  • Put them in a separate directory that I've added to the path.
  • Put them in LINQPads plugin directory.
  • Copy them when I run the query to Assembly.GetExecutingAssembly().Location

I'm just trying to read the log with this library and having it as a snippet in LINQPad would be neat though I suppose I could make it a console application if all else fails.

Anyone used libgit2sharp with LINQPad and can explain how to make them play nice together?


Solution

  • Putting the dll into a folder that is in your path or adding the location of your dll to your path should work (and works for me)

    Perhaps your changes have not taken effect. Try closing and re-opening LinqPad or if that fails, log out and back into windows.