gpt4 book ai didi

.Net Core VS2015,无法加载 DLL 'git2-785d8c4' : The specified module could not be found.(HRESULT 异常:0x8007007E)

转载 作者:行者123 更新时间:2023-12-01 19:26:57 25 4
gpt4 key购买 nike

我正在开发 .Net Core 并尝试将 >net 4.5 应用程序迁移到 .Net Core。在此过程中,我在尝试访问 git .dll 时发现以下错误

以下是我的 Project.json:

  "frameworks": {
"net451": {
"dependencies": {
"Data": "1.0.0-*",
"NLog": "4.3.5",
"HtmlAgilityPack": "1.4.9",
"LibGit2Sharp": "0.22.0",
"RestSharp": "105.2.3",
"Unofficial.Ionic.Zip": "1.9.1.8"
}
}

在这里我收到以下代码行的错误。

if (Repository.IsValid(basePath) == false)

包括命名空间:

using LibGit2Sharp;
using LibGit2Sharp.Handlers;

错误消息是:

Unable to load DLL 'git2-785d8c4': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

我想知道是否有其他方法可以在.Net Core 中使用此功能。

最佳答案

更新:从 8 月 3 日构建的 LibGit2Sharp ( LibGit2Sharp 0.23.0-pre20160803182831 ) 开始,LibGit2Sharp 现在支持常规 .NET 4.5 项目(那些使用基于 .csproj 的解决方案)和基于 project.json 的新型解决方案(如 .NET Core 中引入的解决方案)。

请注意,LibGit2Sharp 仍然不支持 .NET Core,仅支持新的项目结构。请参阅https://github.com/libgit2/libgit2sharp/pull/1318获取更新。

关于.Net Core VS2015,无法加载 DLL 'git2-785d8c4' : The specified module could not be found.(HRESULT 异常:0x8007007E),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38189237/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com