Automating Subversion with C#

11,758

Solution 1

How about sharpsvn

Solution 2

Give a look to this question:

Solution 3

Subversion is completely command line driven. TortoiseSVN masks this for us windows users. Simply call the command line commands from within your C# program.

Solution 4

You can write server-side or client-side hooks with C#. on the server side you just need to write an app that takes the connect number of parameters give it the name of the hook and put it in the hooks folder. On the client side you will do the same but you need to hell Tortoise were to find the app.

(this is assuming you want to get information from SNV in to the content management. You might want to look at the command line tools or SharpSVN to go the other way around)

Share:
11,758

Related videos on Youtube

Chris B. Behrens
Author by

Chris B. Behrens

I am a Pluralsight and O'Reilly author on DevOps and other technology topics. I'm also a writer, speaker and teacher with twenty-five years of experience in software architecture and management. I've seen just about every wrong way to do software, every trauma-induced software culture issue, and run down a whole lot of false premises along the way.

Updated on April 16, 2022

Comments

  • Chris B. Behrens
    Chris B. Behrens about 2 years

    Possible Duplicate:
    Does anyone know of a good C# API for Subversion?

    I'm designing a document library, and I'd like to use Subversion as the version control system. How can I automate tasks like check-in, check-out and diff from C#? Does Tortoise perhaps offer some help with this?

    TIA.

  • Marc Wittke
    Marc Wittke over 14 years
    Noteworthy: by using the --xml parameter you get the output as XML which is definitely easier to parse than plain console output. I was using this in a C#-based server hook that was sending commit messages to our bug tracker...