gpt4 book ai didi

c# - 如何从 SharpSVN 获取最新版本号?

转载 作者:IT王子 更新时间:2023-10-29 04:09:08 26 4
gpt4 key购买 nike

如何使用 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com