tags:

views:

2140

answers:

4

Is there an API to access Subversion from C#?

+2  A: 

Check SubversionSharp, its basically a C# wrapper library that fully covers the client API of Subversion.

CMS
There is a note on the site that at the time it supports exclusively .NET 1.1. If you want .NET 2.0 support you could try SVN.NET.
splattne
+11  A: 

Svn.NET is a continuation (fork) of SubversionSharp mentioned in CMS's answer. SubversionSharp is limited to the .NET 1.1 platform.

Svn.NET supports the following platforms:

  • .NET 2.0 on Windows Platforms
  • Mono on Win32 (2.0 framework)
  • Mono on Linux (2.0 framework)
splattne
Did you try it? Did you like it? Tell me more about it!
Pascal Paradis
No commits since 2008, I assume it's dead
Simon D
the api for this is ass
Andrew Bullock
+2  A: 

I tried Svn.NET at one point and remember that it didn't do everything that I was looking for. If Svn.NET works for you I'd definitely recommend that route, but if you have problems like I did you can get wild and try using http://www.ikvm.net/ to convert http://svnkit.com/ to a .NET assembly. I definitely got this to work and was experimenting with it in my project when we decided to move away from SVN after all and I shelved the whole thing.

MichaC
+13  A: 

SharpSvn is a new Subversion wrapper library for .Net/C# that hides all interopand memory management for you and includes a staticly compiled Subversion library for easy integration. It is probably the only Subversion binding designed to perform well in a multithreaded environment.

SharpSvn is not platform independent, but it makes it really easy to use Subversion from your .Net applications. Several projects switched from other libraries to using SharpSvn in the last year. (AnkhSVN, Collabnet desktop for Visual Studio, SharpForge, to name a few)

Bert Huijben
+1 - I've used SharpSvn on .NET 2.0 and found it simple to use.
JeffH