我在Microsoft中创建了一个云服务类型解决方案。此解决方案有一个员工角色项目。
我希望使用LibGit2Sharp库克隆一个包含worker角色的存储库。
很简单:
public override bool OnStart()
{
ServicePointManager.DefaultConnectionLimit = 12;
string workingDir = @"E:\TestRepos\testrepo3";
string repoUrl = "https://github.com/xx/xx.git";
string repoPath = LibGit2Sharp.Repository.Clone(repoUrl, workingDir);
return base.OnStart();
}但是,我在Repository.Clone()行中得到了以下错误消息。

我在MVC 5项目中使用了这段代码,在这种情况下,它运行得非常好。我使用将LibGit2Sharp库添加到项目中。
你觉得呢,我错过了什么?
https://stackoverflow.com/questions/24681352
复制相似问题