在使用Svn Client操作Checkout,Commit,Update等指定時,常常都要以Process摸擬cmd.exe來執行svn command,
實在是十分不方便,今天無意中找到一個不錯的方法,就是使用JAVA的Library,不過使用前的設定比較繁瑣就是了。
步驟:
1.Install IKVM.NET
2.Install the Subversion java language bindings
3.Compiling the java language bindings for .NET
使用IKVM.NET將Subversion官方網址上的java language bindings Compiling成DLL,在C#專案中References進來,就可使用啦。
SvnClient API References URL : http://svn.collab.net/svn-javadoc/org/tigris/subversion/javahl/SVNClient.html
相關細節可參考下:http://sdesmedt.wordpress.com/2006/12/21/how-to-access-subversion-from-c/
浙公网安备 33010602011771号