C# 使用SharpSVN从SVN获取特定版本的问题
如果我使用tortoiseSVN,我可以导航到以下URI并看到文件确实存在: svn://server/DocRoot/WordFile.doc 我可以看到文件的当前版本是6 但是,此代码不起作用,我不知道我做错了什么:C# 使用SharpSVN从SVN获取特定版本的问题,c#,svn,sharpsvn,C#,Svn,Sharpsvn,如果我使用tortoiseSVN,我可以导航到以下URI并看到文件确实存在: svn://server/DocRoot/WordFile.doc 我可以看到文件的当前版本是6 但是,此代码不起作用,我不知道我做错了什么: using (SvnClient svn = new SvnClient ()) { Uri repos = new Uri (svnPath); // svnPath = "svn://server/DocRoot/WordFile.doc" SvnUriTarg
using (SvnClient svn = new SvnClient ())
{
Uri repos = new Uri (svnPath); // svnPath = "svn://server/DocRoot/WordFile.doc"
SvnUriTarget target = new SvnUriTarget (repos, revision);
MemoryStream buffer = new MemoryStream ();
svn.Write (target, buffer);
return buffer.ToArray ();
}
此块抛出异常,表示找不到“svn://server/DocRoot/WordFile.doc@6英寸,但乌龟能找到它。有没有关于我哪里出错的想法?上面的代码运行良好,问题是subversion中的SVNPath区分大小写