C# SharpSSH';s Scp对象可以';无法复制大于2GB的文件

C# SharpSSH';s Scp对象可以';无法复制大于2GB的文件,c#,.net,scp,sharpssh,C#,.net,Scp,Sharpssh,每当我尝试复制大于2GB的文件时,我都会在get方法中得到一个数组索引越界异常: Scp myScp = new Scp("remotehost", "joe", "mypassword"); myScp.OnTransferProgress += new FileTransferEvent(scpProg); myScp.Connect(22); myScp.Get("/home/joe/bigfile.bin", "/tmp/bigfile.bin"); myScp.Close(); …我

每当我尝试复制大于2GB的文件时,我都会在get方法中得到一个数组索引越界异常:

Scp myScp = new Scp("remotehost", "joe", "mypassword");
myScp.OnTransferProgress += new FileTransferEvent(scpProg);
myScp.Connect(22);
myScp.Get("/home/joe/bigfile.bin", "/tmp/bigfile.bin");
myScp.Close();

…我通过在战略位置将int替换为Int64来解决这个问题

我开始添加一些我需要的东西,我将尝试添加你的补丁。请告诉我你正在.NET 4.0中运行它!当我在.NET4下编译Tamir的代码时,我在主机解析中遇到了一些奇怪的错误。它只适用于.NET3.5。这绝对不是最流畅的体验,异常处理也很糟糕,但至少它是一个起点!