本文介绍了如何从SharpSVN获得最新的版本号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用SharpSVN获得最新的版本号?
How to get latest revision number using SharpSVN?
推荐答案
最便宜的方式从资源库中检索头部修订
是信息的命令。
The least expensive way to retrieve the head revision from a repositoryis the Info command.
using(SvnClient client = new SvnClient())
{
SvnInfoEventArgs info;
Uri repos = new Uri("http://my.server/svn/repos");
client.GetInfo(repos, out info);
Console.WriteLine(string.Format("The last revision of {0} is {1}", repos, info.Revision));
}
这篇关于如何从SharpSVN获得最新的版本号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!