MSBUILD:记录器错误MSB4104:无法写入日志文件间歇性问题 [英] MSBUILD : Logger error MSB4104: Failed to write to log file Intermittent Issue

查看:155
本文介绍了MSBUILD:记录器错误MSB4104:无法写入日志文件间歇性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,

我们正在为我们的CI管道使用Azure Devops。我们正在使用Ms Build任务来构建启用了创建日志文件的解决方案文件。最近我们偶尔注意到ms构建错误。代理在构建服务器上具有所有必需的管理权限
。并且还将代理文件夹排除在扫描的一部分。

We are using Azure Devops for our CI pipelines .We are using the Ms Build task to build the solution file with Create log file enabled. recently we have noticed following ms build errors sporadically. the Agent has all the Required Administrative permissions on the build server.And also excluded the agent folders as part of the scanning also.

错误消息:

MS BUILD:记录器错误MSB4104:无法写入日志文件"E:\\ \\VstsAgent01\_work\374\s\ ***。sln.log" ;.该进程无法访问文件'E:\VstsAgent01 \_work\374 \\\\ ***。sln.log',因为它正被另一个进程使用。

## [错误]进程'msbuild.exe'退出,代码为'1'。

MS BUILD : Logger error MSB4104: Failed to write to log file "E:\VstsAgent01\_work\374\s\***.sln.log". The process cannot access the file 'E:\VstsAgent01\_work\374\s\***.sln.log' because it is being used by another process.
##[error]Process 'msbuild.exe' exited with code '1'.




MSBuild任务详情:

任务         :MSBuild

说明  :使用MSBuild构建

版本      :1.151.0

Task         : MSBuild
Description  : Build with MSBuild
Version      : 1.151.0

代理商版本:2.133.3

Agent Version: 2.133.3

Agent.OS:Windows_NT

Agent.OS: Windows_NT

有人可以帮助解决此类错误。 

Could some one assist how to resolve such errors. 

提前致谢

Ravi j

推荐答案

朋友,

感谢您发布此处。

此论坛是关于VS本地的MSBuild(讨论Microsoft构建引擎又名MSBuild。主题包括:MSBuild的使用,构建自定义和MSBuild通过任务,记录器和托管的可扩展性。 

This forum is about the MSBuild locally in VS(Discuss the Microsoft build engine aka MSBuild. Topics including: usage of MSBuild, build customization, and MSBuild extensibility via tasks, loggers and hosting). 

由于您的问题与Devops更相关,我建议您可以在
DeveloperCommunity &
Stack OverFlow with Devops标签 以获得更好的支持。

As your issue is more related to the Devops, I suggest that you could open an new thread on the DeveloperCommunity or Stack OverFlow with Devops tag for better support.

如果你有一些MSBuild问题,请随时联系你秒。我们将尽力为您提供解决方案。

If you have some MSBuild questions, please feel free to contact us. We will try our best to give you a solution.

感谢您的理解与合作。 

Thanks for your understanding and cooperation. 

最好的问候

Lance


这篇关于MSBUILD:记录器错误MSB4104:无法写入日志文件间歇性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆