Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomatic Update and checkin of AssemblyInfo.cs files occasionally causes partial fail
    primarykey
    data
    text
    <p>We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. Unfortunately, when two builds are queued close together this results in a Partially completed build as the AssemblyInfo.cs files seem to be checked out at an earlier version to the previous checkin.</p> <p>In order to get around this I thought that I could use the "Get" task to force the AssemblyInfo.cs files to the latest version before updating them, but this appears to have no effect. Any ideas?</p> <pre><code>&lt;Target Name="AfterGet" Condition="'$(IsDesktopBuild)'!='true'"&gt; &lt;Message Text="SolutionRoot = $(SolutionRoot)" /&gt; &lt;Message Text="OutDir = $(OutDir)" /&gt; &lt;!-- Set the AssemblyInfoFiles items dynamically --&gt; &lt;CreateItem Include="$(SolutionRoot)\Main\Source\InputApplicationSln\**\$(AssemblyInfoSpec)"&gt; &lt;Output ItemName="AssemblyInfoFiles" TaskParameter="Include" /&gt; &lt;/CreateItem&gt; &lt;Message Text="$(AssemblyInfoFiles)" /&gt; &lt;!-- When builds are queued up successively, it is possible for the next build to be set up before the AssemblyInfoSpec is checked in so we need to force the latest these versions of these files to be got before a checkout --&gt; &lt;Get Condition=" '$(SkipGet)'!='true' " TeamFoundationServerUrl="$(TeamFoundationServerUrl)" Workspace="$(WorkspaceName)" Filespec="$(AssemblyInfoSpec)" Recursive="$(RecursiveGet)" Force="$(ForceGet)" /&gt; &lt;Exec WorkingDirectory="$(SolutionRoot)\Main\Source\InputApplicationSln" Command="$(TF) checkout /recursive $(AssemblyInfoSpec)"/&gt; </code></pre> <p></p> <p> </p>
    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.
 

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