我正在使用SharpSVN.
我想将SVN凭证存储在pc中.
我尝试设置凭据更新默认凭据
using (SvnClient client = new SvnClient())
{
client.Authentication.DefaultCredentials = new System.Net.NetworkCredential("user", "password");
...
}
Run Code Online (Sandbox Code Playgroud)
但它不保存数据.
我发现SharpSvn提供了一个默认的GUI来输入凭据.该GUI具有存储数据的标志.这里是我找到信息的链接:
这里使用它的代码:
using (SvnClient client = new SvnClient())
{
// Bind the SharpSvn UI to our client for SSL certificate and credentials
SharpSvn.UI.SharpSvnUI.Bind(client, IWin32Window);
....
}
Run Code Online (Sandbox Code Playgroud)
但它是针对Windows.Forms和我使用WPF.此外,我无法使用此默认GUI.
有人现在怎么办?
谢谢!!