libgit2 / libgit2/libgit2sharp.nativebinaries
Parent double-dot path step in application manifest asmv1:assembly/file/@name throwing error
還沒有人認領這個 Issue。
- 主要語言
- PowerShell
- 星號
- 35
- 分支
- 74
- PR 合併指標
- 30 天內沒有已合併 PR
描述
In building from NuGet, the application manifest includes a number of asmv1:assembly/file/@name values that have a double dot, e.g.,
<file name="lib\fedora-x64\native\..\libgit2-106a5f2.so" size="1198160">
This throws an error, e.g. (via SxsTrace):
ERROR: Line 449: The value lib\alpine.3.9-x64\native\..\libgit2-106a5f2.so of attribute name in element urn:schemas-microsoft-com:asm.v1^file is invalid.
It seems that the root of this issue is https://github.com/libgit2/libgit2sharp.nativebinaries/blob/9469eab266bacdbb46aed4610b3b0e6bbfc56395/nuget.package/build/net46/LibGit2Sharp.NativeBinaries.props#L11
There the double-dot parent path is hard coded to be imprinted and negate native.
I propose the removal of ..\ in attribute TargetPath or something similar. Keeping the native subdirectory shouldn't harm anything. At any rate, ISTM the syntactical constraints of asmv1:assembly/file/@name should be respected.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 issue 中連結的 LibGit2Sharp.NativeBinaries.props 項目開始,特別查看第 11 行及其 TargetPath 值。從 NuGet 重新建置,並確認產生的應用程式資訊清單不再包含父路徑步驟,且能被 SxsTrace 接受。
由索引模型根據 Issue 內容生成。
評估
- 領域
- build-system
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100