libgit2 / libgit2/libgit2sharp
Natives libraries are not disposed
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 3.5k
- Forks
- 925
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I'm using libGitSharp under IIS pool, when IIS pool is off I can compile my VS solution without any problems, but it I want to recompile the web site when the pool process is up, I always get an error with git2-106a5f2.dll assembly that is loaded and never disposed. All my libgitsharp code is around a USING statement.
Reproduction steps
Create a web project, code something with libgitsharp, run it, try to recompile the project
Expected behavior
I should be able to recompile my project without errors
Actual behavior
I get following error :
3>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(4943,5): warning MSB3061: Unable to delete file "....\bin\lib\win32\x64\git2-106a5f2.dll". Access to the path '...\bin\lib\win32\x64\git2-106a5f2.dll' is denied.
Version of LibGit2Sharp (release number or SHA1)
LibGitSharp 0.26.2
Operating system(s) tested; .NET runtime tested
Windows 10 2004, .NET 4.6.2
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Reproduktion des Webprojekts unter IIS auf Windows 10 und dem libGitSharp-Code innerhalb der gemeldeten USING-Anweisung. Untersuche, wie die geladene git2-106a5f2.dll nach dem Ausführen der Website beibehalten wird, und überprüfe anschließend die Behebung, indem du neu kompilierst, während der IIS-Pool aktiv bleibt, und bestätigst, dass die DLL gelöscht werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100