msbuild和subversion

时间:2009-09-30 11:43:43

标签: svn msbuild

我试图使用msbuild从我的subversion存储库中获取最新版本的代码。我正在尝试使用msbuild community tasks,特别是使用svn任务来下载我的代码的最新版本。我不确定我需要使用哪些任务来实现这一目标(SvnClient,SvnUpdate)

目前我的msbuild目标看起来像这样

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

我不确定Command参数应该是什么,或者我是否应该使用SvnClient任务。有人可以帮忙吗?

2 个答案:

答案 0 :(得分:1)

首次使用SvnCheckout

来最新下载最新版本

答案 1 :(得分:1)

我想说你需要SvnUpdate来确保在构建之前始终获得代码的最新更改。

相关问题