title: MSBuild AssemblyInfo CreateItem failed
body: <p>We are running MSBuild from CruiseControl.net.<br>
  We have one branch that, when built on the build server via CC, fails with the following error:   </p>
  
  <pre><code>&lt;target name="UpdateAssemblyInfo" startTime="11/13/2012 18:48:35" elapsedTime="00:00:01" elapsedSeconds="1" success="false"&gt;        
  &lt;error code="MSB4018" file="C:\Continuous Integration Projects\Project\Release\Build\Master.build" line="88" column="5" timeStamp="11/13/2012 18:48:36"&gt;&lt;![CDATA[The "CreateItem" task failed unexpectedly.System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.   at System.IO.PathHelper.GetFullPathName()
  </code></pre>
  
  <p>The error goes on for many more lines...</p>
  
  <p>The task is defined in master.build:  </p>
  
  <pre><code>&lt;Target Name="UpdateAssemblyInfo"&gt;    
      &lt;CreateItem Include="$(SourcePath)\**\Properties\AssemblyInfo.cs"&gt;      
          &lt;Output TaskParameter="Include" ItemName="UpdateAssemblyInfoFiles"/&gt;
      &lt;/CreateItem&gt;    
      &lt;Attrib Files="@(UpdateAssemblyInfoFiles)" Normal="true" /&gt;    
      &lt;AssemblyInfo AssemblyInfoFiles="@(UpdateAssemblyInfoFiles)"   AssemblyVersion="$(CCNetLabel)" AssemblyFileVersion="$(CCNetLabel)"/&gt;  
  &lt;/Target&gt;
  </code></pre>
  
  <p>How can we figure out which AssemblyInfo.cs is causing the problem?<br>
  Is there some way to add diagnostic output to the master.build file?</p>
  
  <p>Thanks for any insight...</p>