The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception
Unable to load shared library 'git2-7ce88e6' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-7ce88e6: cannot open shared object file: No such file or directory
After updating to netcore 3 using the following docker image
mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim
https://packages.debian.org/buster/slimUsing latest
LibGit2Sharp: 0.26.1
This is the error we are getting:
Error
The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception
Unable to load shared library 'git2-7ce88e6' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-7ce88e6: cannot open shared object file: No such file or directory