Is there a C # library to package multiple SCM API providers?

The project I'm working on requires access to a user control. To do this, we wrap the Perforce and Subversion APIs (using P4.NET and SubversionSharp, respectively).

We would like to support as much as we can, depending on user requirements, and I tried using Google for the existing library, but no luck. Is there a C # library that wraps multiple SCM applications?

+5
source share
4 answers

You may be looking for a Microsoft source control provider (MSSCCI). I know that this interface is implemented in Source Source, Server Foundation Server, Subversion, Evolution (and some other others).

+2
source

MSSCCI will help many version control products directly access Visual Studio, but it is not necessary to use .NET code. To my knowledge, there is no .NET library that abstracts access to all version control products, not even more than one.

It would be interesting if you could wrap the MSSCCI provider (maybe you need to implement some C ++ headers) as a .NET assembly.

+1
source

MSSCCI DllImport/interop?

, ...

[DllImport(@"C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SSSCC.DLL")]
+1

MSSCCI , SCC- SCI , Checkout-Checkin VSS.

"/" / / .

Subversion .Net, SharpSvn, Subversion . Net. ( , apr-, .., ).

Subversion 1/5- , .

using(SvnClient client = new SvnClient())
{
   client.Update(@"C:\My\WorkingCopy");

   // Do something to your working copy
   File.AppendAllText(@"C:\My\WorkingCopy", "\nFile Change\n");

   SvnCommitArgs ca = new SvnCommitArgs();
   ca.LogMessage = "Line added";

   client.Commit(@"C:\My\WorkingCopy", ca);
}
0
source

All Articles