【发布时间】:2016-07-04 16:42:12
【问题描述】:
我正在开发 .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;
错误信息是:
无法加载 DLL 'git2-785d8c4':找不到指定的模块。 (HRESULT 异常:0x8007007E)
我想知道是否有任何其他方法可以让我在 .Net Core 中使用此功能。
【问题讨论】:
-
您可以运行 fuslogvw 来确定它在哪里寻找该 dll。
标签: .net asp.net-core asp.net-core-mvc .net-core libgit2sharp