libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.16k stars 888 forks source link

Corrupted Manifest File #1831

Open jaunruh opened 3 years ago

jaunruh commented 3 years ago

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.

sebastianwindeck commented 3 years ago

Same here. @ethomson do you know some reason why this does not work?

I created the VSTO in VS2019 and it creates the manifest error. For a ConsoleApp for the very same Target 4.6.1 the project LibGit2Sharp runs smoothly. Is there some issue with the build process of LibGit2Sharp.Native?