gpt4 book ai didi

git - Cruise Control .Net 异常写入 msbuild-results.xml

转载 作者:太空狗 更新时间:2023-10-29 13:21:12 26 4
gpt4 key购买 nike

我有一个在虚拟机上运行构建的巡航控制服务器。我所做的只是将源代码控制从 Perforce 更改为 Git,现在构建失败了。

CCNet 配置

<tasks>
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>c:\Build\Pcp_Main</workingDirectory>
<buildArgs>/v:d Pcp.proj /target:Clobber;Build /property:Configurations="Debug;Release" /property:NUnitRedirectConsoleOutput=1</buildArgs>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
<timeout>2700</timeout>
</msbuild>
</tasks>

构建日志

Done Building Project "c:\Build\Pcp_Main\Pcp.proj" (Clobber;Build target(s)).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:01:32.39
MSBUILD : error MSB4015: The build stopped unexpectedly because the "ReusableLogger" logger failed unexpectedly during shutdown.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\Build\Pcp_Main\Artifacts\msbuild-results-2d082e8c-0e88-4c0b-9a6b-aa0e3094cab9.xml'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlDocument.Save(String filename)
at ThoughtWorks.CruiseControl.MSBuild.XmlLogger.Shutdown()
at Microsoft.Build.Evaluation.ProjectCollection.ReusableLogger.Shutdown()
at Microsoft.Build.BackEnd.Logging.LoggingService.ShutdownLogger(ILogger logger)
</build>

文件夹 c:\Build\Pcp_Main\Artifacts\存在并且运行构建的用户对该文件夹具有写入权限。

我还尝试将日志记录 dll 更改为 Rodemeyer.MsBuildToCCnet.dll,但我遇到了同样的异常。

该项目也可以从命令行构建,没有任何问题。

最佳答案

问题是在 build 文件夹中有 artifacts 文件夹。将其移出构建文件夹解决了该问题。

关于git - Cruise Control .Net 异常写入 msbuild-results.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9874785/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com