0

我们目前使用 MSBuild 任务来调用颠覆命令。例如。<SvnCommit Message="Automated build server checkin" ToolPath="$(SvnPath)" Targets="$(MSBuildProjectDirectory)"/>

问题是它强制颠覆命令“svn ci”为我们的构建使用开关 --non-interactive --no-auth-cache。

有谁知道我可以在 MSBuild 任务中使用的任何参数<SVNCommit ... >来摆脱开关 --non-interactive --no-auth-cache 的使用?

谢谢。

4

1 回答 1

0

根据最完整和自我描述的文档,您可以轻松更改任何命令行参数。在您的特定情况下,您应该在调用中添加两个参数

<SvnCommit Message="Automated build server checkin" 
           ToolPath="$(SvnPath)" 
           Targets="$(MSBuildProjectDirectory)"
           NonInteractive="false"
           NoAuthCache="false"/>

PS:他们的测试表明这两个参数是默认使用的。

于 2012-07-25T21:29:43.740 回答