tags:

views:

413

answers:

2

Im trying to use msbuild to get the latest version of my code from my subversion repository. I'm trying to use the msbuild community tasks and in particluar the svn tasks to pull down the latest version of my code. I'm unsure which task(s) I need to use to achieve this (SvnClient, SvnUpdate)

Currently my msbuild target looks like this

<Target Name="GetLatestFromSVN">
 <SvnClient
   RepositoryPath="https://mySvnRepositorytrunk/src/current"
   ToolPath="C:\Program Files\Subversion\bin"
   Username="Username"
   Password="password"
   LocalPath="$(BuildRootPath)\src">
 </SvnClient>
</Target>

Im unsure what the Command parameter should be or if I should be using the SvnClient task at all. Can anyone help?

+1  A: 

To pull down the latest for the first time its best to use SvnCheckout

Dav Evans
A: 

I would say you need SvnUpdate to ensure you always get the latest changes of your code before building.

gbjbaanb