C#代码导出SVN文件夹

aro*_*ron 4 c# svn tortoisesvn

我正在寻找一个简单的C#脚本,它将导出一个SVN文件夹.

注意:我在这个Win 2008 r2服务器上安装了tovise svn.

谢谢你的帮助!

例:

//SVN: 
string source = c:\project\websiteFiles\

//Export to:
string target = c:\inetpub\hockeyWebsite\

ExportSVNfolder(source, target)
{
// export the files

// wait till export is 100% complete

// return
}
Run Code Online (Sandbox Code Playgroud)

jan*_*jan 8

使用SharpSvn的SvnClient导出方法非常简单:

SharpSvn.SvnClient svnclient = new SvnClient();
svnclient.Export(new SvnUriTarget(source),
    target, new SvnExportArgs());
Run Code Online (Sandbox Code Playgroud)