libgit2 / libgit2/libgit2sharp

Support for MacCatalyst

Abierto
#2,059 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
C#
Estrellas
3.5k
Forks
925
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Reproduction steps

Created a new .NET MAUI app and launched it with MacCatalyst. When making a call to Repository.IsValid(projectPath); it will throw the following. Looking at the output folder, the runtimes are not copied there. I have tried manipulating the output folder, but it doesn't seem to be able to resolve the native library properly.

{System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
 ---> System.DllNotFoundException: git2-e632535
   at LibGit2Sharp.Core.NativeMethods.InitializeNativeLibrary() in **/_/LibGit2Sharp/Core/NativeMet…}**

Running the same command via a console application (.NET 7.0 CLI, not MacCatalyst) executes as expected.

Expected behavior

Native libraries should be copied to the output folder and made available, if possible, for the MacCatalyst platform.

Actual behavior

Native libraries are not copied over and cannot be referenced on MacCatalyst.

Version of LibGit2Sharp (release number or SHA1)

0.27.2

Operating system(s) tested; .NET runtime tested

.NET 7.0 via MacCatalyst-x64 (Mac M1).

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Empieza reproduciendo Repository.IsValid(projectPath) en una aplicación .NET 7 MacCatalyst-x64 e inspecciona Core/NativeMethods junto con la carpeta de salida. Compara la salida de MacCatalyst con los archivos nativos de tiempo de ejecución de la aplicación de consola que funciona; se considera terminado cuando la biblioteca nativa requerida se copia y se resuelve en MacCatalyst.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp, git
Área
build-system, desktop
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.