libgit2 / libgit2/libgit2sharp

Natives libraries are not disposed

オープン
#1,837 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
C#
スター
3.5k
フォーク
925
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Windows 10 上の IIS での Web プロジェクトの再現と、報告された USING ステートメント内の libGitSharp コードから始めてください。Web サイトの実行後に、ロードされた git2-106a5f2.dll がどのように保持されるかを調査し、その後、IIS プールがアクティブなまま再コンパイルして DLL を削除できることを確認することで、修正を検証してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
backend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。