Note that there are some explanatory texts on larger screens.

plurals
  1. POTFS Build SourceTfs.Checkout
    primarykey
    data
    text
    <p>I am trying to get my build to checkout some files (using Microsoft.Sdc.Common.tasks) and then to check them in after the build has finished. But I can't seem to get this working at all, let alone before and after the build.</p> <p>Whaereabouts should this sort of code live?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Project DefaultTargets="DesktopBuild;MyProjectDbUpdate" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"&gt; &lt;Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets" /&gt; &lt;PropertyGroup&gt; &lt;TasksPath&gt;C:\Program Files\MSBuild\sdc\&lt;/TasksPath&gt; &lt;/PropertyGroup&gt; &lt;Import Project="$(TasksPath)\Microsoft.Sdc.Common.tasks" /&gt; &lt;Target Name="MyProjectDbUpdate"&gt; &lt;Message Text="MyProjectDbUpdate checkin start"/&gt; &lt;SourceTfs.Checkout Path="$/MyProject/Code/MyProjectDbUpdate" TfsVersion="2008" workingDirectory="C:\buildagent\MyProject\ContinuousIntegration\Sources\Code" /&gt; &lt;SourceTfs.Checkin Path="$/MyProject/Code/MyProjectDbUpdate" workingDirectory="C:\buildagent\MyProject\ContinuousIntegration\Sources\Code" Comments="Build checkout/checkin." TfsVersion="2008" Override="Build overrides checkin policy" /&gt; &lt;Message Text="MyProjectDbUpdate checkin complete"/&gt; &lt;/Target&gt; &lt;ProjectExtensions&gt; &lt;ProjectFileVersion&gt;2&lt;/ProjectFileVersion&gt; &lt;Description&gt;Build&lt;/Description&gt; &lt;BuildMachine&gt;MYSERVER&lt;/BuildMachine&gt; &lt;/ProjectExtensions&gt; &lt;PropertyGroup&gt; &lt;TeamProject&gt;MyProject&lt;/TeamProject&gt; &lt;BuildDirectoryPath&gt;c:\buildagent\MyProject\ContinuousIntegration&lt;/BuildDirectoryPath&gt; &lt;DropLocation&gt;\\UNKNOWN\drops&lt;/DropLocation&gt; &lt;RunTest&gt;false&lt;/RunTest&gt; &lt;RunCodeAnalysis&gt;Never&lt;/RunCodeAnalysis&gt; &lt;WorkItemType&gt;Bug&lt;/WorkItemType&gt; &lt;WorkItemFieldValues&gt;System.Reason=Build Failure;System.Description=Start the build using Team Build&lt;/WorkItemFieldValues&gt; &lt;WorkItemTitle&gt;Build failure in build:&lt;/WorkItemTitle&gt; &lt;DescriptionText&gt;This work item was created by Team Build on a build failure.&lt;/DescriptionText&gt; &lt;BuildlogText&gt;The build log file is at:&lt;/BuildlogText&gt; &lt;ErrorWarningLogText&gt;The errors/warnings log file is at:&lt;/ErrorWarningLogText&gt; &lt;UpdateAssociatedWorkItems&gt;true&lt;/UpdateAssociatedWorkItems&gt; &lt;AdditionalVCOverrides&gt;&lt;/AdditionalVCOverrides&gt; &lt;CustomPropertiesForClean&gt;&lt;/CustomPropertiesForClean&gt; &lt;CustomPropertiesForBuild&gt;&lt;/CustomPropertiesForBuild&gt; &lt;/PropertyGroup&gt; &lt;ItemGroup&gt; &lt;SolutionToBuild Include="$(BuildProjectFolderPath)/../../Code/MyProject.sln"&gt; &lt;Targets&gt;&lt;/Targets&gt; &lt;Properties&gt;&lt;/Properties&gt; &lt;/SolutionToBuild&gt; &lt;/ItemGroup&gt; &lt;ItemGroup&gt; &lt;ConfigurationToBuild Include="Release|Any CPU"&gt; &lt;FlavorToBuild&gt;Release&lt;/FlavorToBuild&gt; &lt;PlatformToBuild&gt;Any CPU&lt;/PlatformToBuild&gt; &lt;/ConfigurationToBuild&gt; &lt;/ItemGroup&gt; &lt;ItemGroup&gt; &lt;/ItemGroup&gt; &lt;PropertyGroup&gt; &lt;/PropertyGroup&gt; &lt;ItemGroup&gt; &lt;/ItemGroup&gt; &lt;/Project&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload