我正在寻找我能找到的最简单的免费SVN实现.
我下载并安装了VisualSVN Server - 非常简单.安装TortioseSVN - 非常简单 - 两者一起工作.安装AnkhSVN,我无法连接到VisualSVN服务器上的存储库.
为了让AnkhSVN与VisualSVN服务器通信,我需要做些什么特别的事情吗?
在Code中如下:
假设我有try一堆单独的行并且第一个失败,在我的catch块中我可以输出失败,有没有办法继续try块中的下一个语句?
try
{
string owner = props["primary site owner"].ToString();
string owneremail = props["primary site owner Email"].ToString();
... 10 more statements like the above, mapping properties to variables
}
catch (Exception e)
{
Console.WriteLine("error");
}
Run Code Online (Sandbox Code Playgroud)
例如,如果它未能设置所有者,我可以resume在catch块中发出命令让它尝试下一步设置owneremail吗?
基本上我想在下面这个行为,但不想要10个不同的try catch块.
try
{
string owner = props["primary site owner"].ToString();
}
catch (Exception e)
{
Console.WriteLine("error with site owner");
}
try
{
string owneremail = props["primary site owner Email"].ToString();
}
catch (Exception e)
{
Console.WriteLine("error with email");
}
... 10 …Run Code Online (Sandbox Code Playgroud)