我正在尝试将CruiseControl.NET设置为自动从 SVN ( VisualSVN_Server )下载新版本并将其发布到 beta 目录。
这是有关MSBuild的 CruiseControl.NET 配置文件:
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\CI\WORKING</workingDirectory>
<projectFile>WashMyCarHomepage\WashMyCarHomepage.csproj</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag /p:WebProjectOutputDir=C:\inetpub\wwwroot.beta</buildArgs>
<targets>Build;Test</targets>
<timeout>900</timeout>
<logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
CruiseControl.NET 成功运行 MSBuild,但 MSBuild 失败并显示:
standard-error stream closed -- null received in event
standard-output stream closed -- null received in event
process exited event received
我还尝试从控制台手动运行 MSBuild 以尝试它是否单独工作。但我无法获得正确的输出(可发布到网络)。我试过:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>MSBuild.exe C:\CI\WORKING\WashMyCarHomepage\WashMyCarHomepage.csproj /property:OutDir=C:/CI/TEST;Configuration=Release /t:Publish
但是该项目被“跳过不可发布的项目”跳过。
我有以下解决方案的结构:
WashMyCarHomepage\WashMyCarHomepage.sln
WashMyCarHomepage\Repository\Repository.csproj
WashMyCarHomepage\WashMyCarHomepage\WashMyCarHomepage.csproj
我该如何解决这个问题?