作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
如何使用 SharpSVN 获取最新版本号?
最佳答案
从存储库中检索 head 修订的最便宜的方法是信息命令。
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));
}
关于c# - 如何从 SharpSVN 获取最新版本号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/684953/
我是一名优秀的程序员,十分优秀!