libgit2 / libgit2/libgit2sharp

Corrupted Manifest File

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

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

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

説明

Reproduction steps

Empty VSTO Project for Word on Windows 10 with Visual Studio 2019.
Use NuGet to install libgit2sharp. Start Word via F5

Expected behavior

Add-in should still work.

Actual behavior

Add-in does not work. Word gives an error message saying that the manifest file .dll.manifest is corrupted and it should not contain relative urls.

Version of LibGit2Sharp (release number or SHA1)

0.26.2

Operating system(s) tested; .NET runtime tested

Windows 10, .net 4.7.2

The error refers to the relative url in this element of the xml:

<file name="lib\alpine.3.9-x64\native\..\libgit2-106a5f2.so" size="1332656">
    <hash>
      <dsig:Transforms>
        <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
      </dsig:Transforms>
      <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
      <dsig:DigestValue>yeDhp6z/MialxFn54HFrzm85y8UyuCNuWfTKHGpwReg=</dsig:DigestValue>
    </hash>
  </file>

There is one of these element blocks for every folder in the lib folder.

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

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

はじめの一歩

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

調査の方向性

Windows 10、Visual Studio 2019、.NET 4.7.2、LibGit2Sharp 0.26.2 を使用して、空の Word VSTO プロジェクトで問題を再現します。.dll.manifest、特に lib 配下のファイルエントリを調べ、生成されたマニフェストに相対 URL が含まれていないこと、および F5 で起動したときも Word アドインが引き続き動作することを確認します。

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

評価

技術スタック
csharp
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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