В моем app я использую пакет nuget "LibGit2Sharp 0.30.0", который имеет транзитивную ссылку на "LibGit2Sharp.NativeBinaries 2.0.322".
При вызове Repository.Init("path/to/my/repo") мое приложение вылетает:
Код: Выделить всё
System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
---> System.DllNotFoundException: git2-a418d9d
at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary()
at LibGit2Sharp.Core.NativeMethods..cctor()
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.Proxy.git_repository_init_ext(FilePath workdirPath, FilePath gitdirPath, Boolean isBare)
at LibGit2Sharp.Repository.Init(String path, Boolean isBare)
at LibGit2Sharp.Repository.Init(String path)
Код: Выделить всё
[monodroid-assembly] Shared library 'git2-a418d9d' not loaded, p/invoke 'git_repository_init_ext' may fail
[monodroid-assembly] Shared library 'kernel32' not loaded, p/invoke 'LoadLibrary' may fail
[monodroid-assembly] Shared library 'libdl' not loaded, p/invoke 'dlopen' may fail
[monodroid-assembly] Shared library 'git2-a418d9d' not loaded, p/invoke 'git_libgit2_init' may fail
[monodroid-assembly] Shared library 'git2-a418d9d' not loaded, p/invoke 'git_openssl_set_locking' may fail
[monodroid-assembly] Shared library 'git2-a418d9d' not loaded, p/invoke 'git_libgit2_init' may fail
Примечание: мое приложение также использует другую собственную библиотеку (sqlite), которую можно загрузить без проблем.
Я что-то упустил? Как я могу получить дополнительную информацию о том, почему не удается загрузить общую библиотеку «git2-a418d9d»?
Любая помощь приветствуется

Подробнее здесь: https://stackoverflow.com/questions/790 ... d-arm64v8a