Doing a SVN-Update on a certain directory using C#?

  • Thread starter Thread starter Oltmans
  • Start date Start date
O

Oltmans

Hi all,

I'm new to sub-version and still learning the process. We've a
scenario in our office where we do a Svn-Update on a certain folder to
fetch the latest code and then we deploy that directory (after
verifying the version number in one of the files in that directory).
Now I just want to automate this process i.e. to write a program that
would let me do a SVN-Update on a directory , fetch the directory for
me and then I will manually deploy it(or would later automate that
too).
So as I'm new to Sub-Version, please let me know how can I
automagically do a SVN-Update by using any library?
I mean can I programmatically do a SVN-Update on a folder using C#? If
so, how? Please enlighten me.

Please let me know, thanks in advance.

Thanks,
Rolf
 
Oltmans said:
Hi all,

I'm new to sub-version and still learning the process. We've a
scenario in our office where we do a Svn-Update on a certain folder to
fetch the latest code and then we deploy that directory (after
verifying the version number in one of the files in that directory).
Now I just want to automate this process i.e. to write a program that
would let me do a SVN-Update on a directory , fetch the directory for
me and then I will manually deploy it(or would later automate that
too).
So as I'm new to Sub-Version, please let me know how can I
automagically do a SVN-Update by using any library?
I mean can I programmatically do a SVN-Update on a folder using C#? If
so, how? Please enlighten me.

Please let me know, thanks in advance.

Thanks,
Rolf

Call the SVN.EXE command line program with the appropriate parameters.

Look at the System.Diagnostics.Process class for how to start an
external program.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top