我们从CruiseControl.net运行MSBuild。
我们一个分支,当通过CC在构建服务器构建,失败,出现以下错误:MSBuild AssemblyInfo CreateItem失败
<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文件中?
感谢任何见解...
你能提供master.build文件的第88行吗? –
88行是 行。 –
Number8