I am creating a Visual Studio extension that makes use of the LIbGit2Sharp nuget package. The problem that I am having is that when I try to debug the extension at the moment the package is called I get the error message below.
Exception
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
Inner Exception
Unable to load DLL 'git2-572e4d8': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
How can I add a nuget package to the extension and have it work when debugging and on the user's machine?
I've found an answer to this question here StackOverflow answer. But it's from a long time ago and full of steps. There must be an easier way to use nuget package in a custom Visual Studio extension in this day and age.
Any help will be greatly appreciated. Thanks! :)
User contributions licensed under CC BY-SA 3.0