I'm looking for a simple C# script that will export an SVN folder.
note: I have tortoise svn installed on this Win 2008 r2 server.
Thanks for your help!
example:
//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
}
Using SharpSvn's SvnClient Export Method it's really easy:
SharpSvn.SvnClient svnclient = new SvnClient();
svnclient.Export(new SvnUriTarget(source),
target, new SvnExportArgs());
I would recommend using SharpSVN.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With