0
我想從給定的遠程URL搜索.sln和.java文件:類似http://olfandsub1.olf.com/nyts/。使用C#在SharpSVN中獲取包含.sln和.java文件的文件夾名稱
我試過下面的代碼用於讀取所有文件,但它不工作。你能解釋一下GetList
函數在代碼中的作用嗎?
你也可以告訴我,如果我可以在代碼中將文本框的值作爲projectPath嗎?
我能解決我的問題的最佳方法是什麼?
bool gotList;
List<string> files = new List<string>();
using (SvnClient client = new SvnClient())
{
Collection<SvnListEventArgs> list;
gotList = client.GetList(projectPath, out list);
if (gotList)
{
foreach (SvnListEventArgs item in list)
{
files.Add(item.Path);
}
}
}
我也得到了"PROPFIND of '/nyts': authorization failed: Could not authenticate to server: rejected Basic challenge (http://olfandsub1.olf.com <http://olfandsub1.olf.com/>)"
錯誤,即使我的用戶名和密碼是絕對正確的。
請儘快讓我知道,因爲我一直在試圖實施這個爲期3天。謝謝。