Working with SharePoint Artifacts and Team Build, Copy without Compile
When using Team Build with SharePoint items, there are going to be times in build events where you want to take any number of SharePoint artifacts and configure them to copy in your build events to a separate TFS instance. This is extremely common in geographically disperse development environments where there are no full-fidelity migration schemes defined, and can even be useful
Sort of like a synchronization of artifacts. In order to do this, you have to do a couple things, first use the following command to build a destination workspace for your SharePoint artifacts:
-
<CreateWorkspaceTask
-
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
-
BuildUri="$(BuildUri)"
-
BuildDirectory="$(BuildDirectory)"
-
SourcesDirectory="$(SolutionRoot)"
-
Name="$(WorkspaceName)"
-
Comment="$(CreateWorkspaceTaskComment)">
-
<Output TaskParameter="Name" PropertyName="WorkspaceName" />
-
<Output TaskParameter="Owner" PropertyName="WorkspaceOwner" />
-
</CreateWorkspaceTask>
Then build out a "Get" Task to get the source.
-
<Get TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
-
BuildUri="$(BuildUri)"
-
Workspace="$(WorkspaceName)"
-
Version="$(GetVersion)"
-
Filespec="$(GetFilespec)"
-
PopulateOutput="$(GetPopulateOutput)"
-
Overwrite="$(GetOverwrite)"
-
Preview="$(PreviewGet)"
-
Recursive="$(RecursiveGet)"
-
Force="$(ForceGet)">
-
<Output TaskParameter="Gets" ItemName="Gets" />
-
<Output TaskParameter="Replaces" ItemName="Replaces" />
-
<Output TaskParameter="Deletes" ItemName="Deletes" />
-
<Output TaskParameter="Warnings" ItemName="GetWarnings" />
-
</Get>
And you're done!
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL





















Articles & Research
SharePoint Architecture
Personal/Off-Topic
Latest Free SharePoint Software
SecureCenter For SharePoint
SharePoint Security Assurance Program™
Free Online SharePoint Security Tools
Online SharePoint Security Health Assessment
Article Or Research Filed Under 