Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

New Post: UpdateAssemblyInfo - CreateItem task failed

$
0
0

Hello, 

We are running MSBuild from CruiseControl.net.  
We have one branch that, when built on the build server via CC, fails with the following error: 
<target name="UpdateAssemblyInfo" startTime="11/13/2012 18:48:35" elapsedTime="00:00:01" elapsedSeconds="1" success="false">       
<error code="MSB4018" file="C:\Continuous Integration Projects\Project\Release\Build\Master.build" line="88" column="5" timeStamp="11/13/2012 18:48:36"><![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()

The error goes on for many more lines...

The task is defined in master.build:
<Target Name="UpdateAssemblyInfo">   
    <CreateItem Include="$(SourcePath)\**\Properties\AssemblyInfo.cs">     
        <Output TaskParameter="Include" ItemName="UpdateAssemblyInfoFiles"/>
    </CreateItem>   
    <Attrib Files="@(UpdateAssemblyInfoFiles)" Normal="true" />   
    <AssemblyInfo AssemblyInfoFiles="@(UpdateAssemblyInfoFiles)"   AssemblyVersion="$(CCNetLabel)" AssemblyFileVersion="$(CCNetLabel)"/> 
</Target>
 
How can we figure out which AssemblyInfo.cs is causing the problem? 

Thanks for any insight...


Viewing all articles
Browse latest Browse all 1211

Trending Articles