我们正在从 CruiseControl.net 运行 MSBuild。
我们有一个分支,当通过 CC 在构建服务器上构建时,它失败并出现以下错误:
<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()
错误持续多行......
该任务在 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>
我们如何确定是哪个 AssemblyInfo.cs 导致了问题?
有没有办法将诊断输出添加到 master.build 文件?
感谢您的任何见解...