Coppermill
Coppermill

Reputation: 6794

TFS Adding files with MSBuild

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

Answers (1)

KMoraz
KMoraz

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.TfsSourcetask:

<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

Related Questions