Get latest from SVN using C#
There is a simple utility available on internet, to integrate SVN with C#, i.e. SharpSVN.
This lets you do various things from C# code, that you would do using AnkhSVN or from windows explorer.
Example, to get the latest from SVN.
public class SharpSVNSample
public void GetLatest()
using (SvnClient client = new SvnClient())
//Set the SVN credential
client.Authentication.DefaultCredentials = CredentialCache.DefaultCredentials;
// Checkout the code to the specified directory
// Update the specified working copy path to the head revision
Now, I would want to take the latest from SVN and publish the code.
So we can include the MSbuild commands after taking the latest from the SVN and then publish the code at a specified location and copy the output to a virtual directory if required.