TFS checkout overwrite option for cruisecontrol.net?

642 Views Asked by At

I'm trying to find ways to use ccnet with TFS2008 (and/or 2010) with the overwrite option

Is there a way short of checking out the CCnet source and patching it?

2

There are 2 best solutions below

0
On BEST ANSWER

we checked out the source and built one that allows <overwrite>true</overwrite>

3
On

Although I'm not experienced in TFS this should be easy enough using the executable task:

<task>
  <exec>
    <executable>C:\YourPathToTFS\tf</executable>
    <buildArgs>get itemspec /overwrite</buildArgs>
  </exec>
</task>

EDIT: This would be a more general approach:

<sourcecontrol type="vsts">
  <server>http://theurl:8080</server>
  <project>$\YourProject</project>
  <force>true</force>
</sourcecontrol>

The <force>-option seems to correspond to TFS /force switch which combines /all and /overwrite switches.