在尝试为我正在处理的演示项目设置构建时,我收到以下异常:
System.IO.DirectoryNotFoundException:找不到路径'C:\ Documents and Settings \ Administrator \ Local Settings \ Temp \ 1bea7440-959c-4dd4-89ad-05dcd00e369c \ ThoughtWorks.CruiseControl.MsBuild.dll'的一部分
问题:我没有正确配置什么?
以下是我的ccnet.config文件中的任务块:
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</executable>
<workingDirectory>C:\CCWorkingDirectory\DemoApplication</workingDirectory>
<projectFile>DemoApplication.sln</projectFile>
<!--<buildArgs>/noconsolelogger /v:quiet
/p:Configuration=Debug
/p:ReferencePath="C:\Program Files\NUnit 2.4.7\bin"
</buildArgs>-->
<targets>ReBuild</targets >
<timeout>600</timeout >
<!--<logger>c:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger >-->
</msbuild>
</tasks>
答案 0 :(得分:6)
您需要在应用程序的工作目录中包含ThoughtWorks.CruiseControl.MsBuild.dll。
所以你需要将ThoughtWorks.CruiseControl.MsBuild.dll放在C:\ CCWorkingDirectory \ DemoApplication
中以下是有关MSBuild代码的链接。
您也可以将其包含在logger标记中,如下所示:
<logger>
C:\Program Files\CruiseControl.NET\server\
ThoughtWorks.CruiseControl.MsBuild.dll
</logger>