使用带有sharpSvn的.Switch命令不是有效路径c#

时间:2013-04-11 13:22:37

标签: c# sharpsvn

我正在使用sharpsvn库,我想做一个开关,但它一直给我以下错误:

  

“此参数不是有效路径。指定了Uri。”

我检查了路径是否是oke并且路径很好,任何想法都错了吗?

var configpath2 = "http://website.com/svn/CMS/trunk/Configuration";

teststring = localpath + @"\trunk\Configuration\CMS";
svnClient.Switch(new Uri(teststring).ToString(), new SvnUriTarget(new Uri(configpath2)));

1 个答案:

答案 0 :(得分:2)

一些相关链接:

  1. http://docs.sharpsvn.net/current/html/M_SharpSvn_SvnClient_Switch_1.htm
  2. http://docs.sharpsvn.net/current/html/Overload_SharpSvn_SvnClient_Switch.htm
  3. 正如我通过阅读上述页面所理解的那样,您必须将string作为Switch的第一个参数传递。试试这个:

    svnClient.Switch(teststring, new SvnUriTarget(new Uri(configpath2)));
    
相关问题