2009-03-24 2 views

답변

5

샤프 SVN은 SVNMonitor 도구에서 사용됩니다.
이 오픈 소스이므로, 구현 방법을 보려면 트렁크를 살펴 보는 것이 좋습니다.
그것은 http://sharpregion.googlecode.com/svn/trunk/svnmonitor/trunk/SVNMonitor/SVN/SharpSVNClient.cs

+0

이 감사에서 http://sharpregion.googlecode.com/svn/trunk/svnmonitor/trunk/

에서 SharpSVN

using System; using System.Collections.Generic; using System.Text; using SharpSvn; using System.Net; using SVNMonitor.Entities; using System.Collections.ObjectModel; using System.Windows.Forms; using SVNMonitor.View.Dialogs; using SVNMonitor.Helpers; namespace SVNMonitor.SVN { internal class SharpSVNClient { #region Fields private const string RecommendProperty = "svnmonitor:recommend"; #endregion Fields #region Methods private static SvnClient GetSvnClient() { SvnClient client = new SvnClient(); return client; } private static SvnClient GetSvnClient(Source source) { SvnClient client = GetSvnClient(); SetAuthentication(client, source); return client; } private static void SetAuthentication(SvnClient client, Source source) { if (source.Authenticate) { SetAuthentication(client, source.UserName, source.Password); } else { SharpSvn.UI.SvnUI.Bind(client, (IWin32Window)null); } } 

이상을 사용 SVNMonitor의 코드의 일부입니다. 내가 이것을 시도하자. 비주 요셉 –

관련 문제