libgit2 / libgit2/libgit2sharp

Corrupted Manifest File

未关闭
#1,831 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Windows 10、Visual Studio 2019、.NET 4.7.2 和 LibGit2Sharp 0.26.2 上,使用空的 Word VSTO 项目重现该问题。检查 .dll.manifest,尤其是 lib 下的文件条目,并验证生成的清单不包含相对 URL,且 Word 加载项在使用 F5 启动时仍能正常工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
build-system
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。