我正在尝试获取位于网络共享上的 SVN 存储库工作副本的存储库 URL:\\host\D\directory\
正在执行以下代码:
SvnClient svnClient = new SharpSvn.SvnClient();
SvnInfoEventArgs svnInfo;
svnClient.GetInfo(SvnTarget.FromString("\\\\host\\D\\directory\\"), out svnInfo);
Uri repositoryUrl = svnInfo.Uri;
我在GetInfo()方法上遇到了这个错误:
'\host\D' does not exist
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: SharpSvn.SvnException: '\host\D' does not exist
堆栈跟踪:
[SvnException: '\host\D' does not exist]
[SvnInvalidNodeKindException: '\host\D' is not a working copy]
SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error) +232
SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error) +80
SharpSvn.SvnClient.Info(SvnTarget target, SvnInfoArgs args, EventHandler`1 infoHandler) +443
SharpSvn.SvnClient.GetInfo(SvnTarget target, SvnInfoEventArgs& info) +117
你知道什么时候会出错,或者你知道一些更好的方法来使用 SharpSvn 吗?