Support for MacCatalyst
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- csharp, git
- Domaine
- build-system, desktop
Piste de recherche
Commencez par reproduire Repository.IsValid(projectPath) dans une application .NET 7 MacCatalyst-x64 et inspectez Core/NativeMethods ainsi que le dossier de sortie. Comparez la sortie MacCatalyst avec les fichiers natifs d’exécution de l’application console fonctionnelle ; c’est terminé lorsque la bibliothèque native requise est copiée et résolue sur MacCatalyst.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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).
- Langage dominant
- C#
- Étoiles
- 3.5k
- Forks
- 925
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de libgit2/libgit2sharp
-
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
libgit2/libgit2sharp#2193 · 2 commentaires ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 38/100
libgit2/libgit2sharp#2192 · 1 commentaire ·
-
Website is down Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 20/100
libgit2/libgit2sharp#2191 · 2 réactions ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
libgit2/libgit2sharp#2189 · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
libgit2/libgit2sharp#2187 · 2 commentaires ·
Toutes les issues de libgit2/libgit2sharp
Issues similaires
-
Status: Waiting triage Type: Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
nanoframework/Home#1857 ·
-
kind/bug kind/regression
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
unoplatform/uno.toolkit.ui#1646 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
nightscout/nocturne#1379 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
elastic/esql-dotnet#47 ·
-
port: add go-steam fork Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100