Reputation: 6794
I have a number of files that are created during my MSBuild process which are held in an MSBuild directory.
What I need to be able to do is that these files and store then in a different location in TFS. But how do I do this using MSBuild?
Upvotes: 2
Views: 548
Reputation: 14164
The MSBuild Extension Pack has a nice set of tasks for interacting with TFS.
To check-in files from MSBuild, use the MSBuild.ExtensionPack.VisualStudio.TfsSource
task:
<MSBuild.ExtensionPack.VisualStudio.TfsSource
TaskAction="Checkin"
ItemPath="C:\projects\SpeedCMMI\Demo1"
WorkingDirectory="C:\projects\SpeedCMMI"
Comments="Testing"
Notes="Code reviewer=buildrobot"
OverrideText="Justdoit" />
Upvotes: 2