admin管理员组文章数量:1122832
I have a pipeline for an onprem agent. This is a .Net 8 web application.
I'm getting very inconsistent results. Every once in a while I get a completed build. Most of the time I'm getting a message like this:
2024-11-21T14:22:31.2057311Z Restored E:\agent\_work\57\s\foo\source\ABC\TOPImportService\ABC.TOPImportService.csproj (in 192 ms).
2024-11-21T14:22:31.7260950Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.Core\ABC.Core.csproj (in 737 ms).
2024-11-21T14:22:31.7261477Z Restored E:\agent\_work\57\s\foo\source\ABC\src\XYZ.Notification\XYZ.Notification.csproj (in 496 ms).
2024-11-21T14:22:32.6002407Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.PersistenceService\ABC.PersistenceService.csproj (in 856 ms).
2024-11-21T14:22:33.5381732Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.Infrastructure\ABC.Infrastructure.csproj (in 2.53 sec).
2024-11-21T14:22:33.6414945Z Restored E:\agent\_work\57\s\foo\source\ABC\TOPImportWorkerService\ABC.TOPImportWorkerService.csproj (in 2.63 sec).
2024-11-21T14:22:33.7495891Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.Web\ABC.Web.csproj (in 2 sec).
2024-11-21T14:22:40.7093178Z C:\Program Files\dotnet\sdk\8.0.403\Microsoft.Common.CurrentVersion.targets(4857,5): warning MSB3026: Could not copy "obj\Release\net8.0\XYZ.Notification.dll" to "bin\Release\net8.0\XYZ.Notification.dll". Beginning retry 1 in 1000ms. The process cannot access the file 'E:\agent\_work\57\s\foo\source\ABC\src\XYZ.Notification\obj\Release\net8.0\XYZ.Notification.dll' because it is being used by another process. [E:\agent\_work\57\s\foo\source\ABC\src\XYZ.Notification\XYZ.Notification.csproj]
The 'file in use' often changes. Sometimes it is multiple files.
Also - I'm not sure if it is trying to WRITE to the source folder (which wouldn't make sense to me).
I have a pipeline for an onprem agent. This is a .Net 8 web application.
I'm getting very inconsistent results. Every once in a while I get a completed build. Most of the time I'm getting a message like this:
2024-11-21T14:22:31.2057311Z Restored E:\agent\_work\57\s\foo\source\ABC\TOPImportService\ABC.TOPImportService.csproj (in 192 ms).
2024-11-21T14:22:31.7260950Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.Core\ABC.Core.csproj (in 737 ms).
2024-11-21T14:22:31.7261477Z Restored E:\agent\_work\57\s\foo\source\ABC\src\XYZ.Notification\XYZ.Notification.csproj (in 496 ms).
2024-11-21T14:22:32.6002407Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.PersistenceService\ABC.PersistenceService.csproj (in 856 ms).
2024-11-21T14:22:33.5381732Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.Infrastructure\ABC.Infrastructure.csproj (in 2.53 sec).
2024-11-21T14:22:33.6414945Z Restored E:\agent\_work\57\s\foo\source\ABC\TOPImportWorkerService\ABC.TOPImportWorkerService.csproj (in 2.63 sec).
2024-11-21T14:22:33.7495891Z Restored E:\agent\_work\57\s\foo\source\ABC\src\ABC.Web\ABC.Web.csproj (in 2 sec).
2024-11-21T14:22:40.7093178Z C:\Program Files\dotnet\sdk\8.0.403\Microsoft.Common.CurrentVersion.targets(4857,5): warning MSB3026: Could not copy "obj\Release\net8.0\XYZ.Notification.dll" to "bin\Release\net8.0\XYZ.Notification.dll". Beginning retry 1 in 1000ms. The process cannot access the file 'E:\agent\_work\57\s\foo\source\ABC\src\XYZ.Notification\obj\Release\net8.0\XYZ.Notification.dll' because it is being used by another process. [E:\agent\_work\57\s\foo\source\ABC\src\XYZ.Notification\XYZ.Notification.csproj]
The 'file in use' often changes. Sometimes it is multiple files.
Also - I'm not sure if it is trying to WRITE to the source folder (which wouldn't make sense to me).
Share Improve this question asked Nov 21, 2024 at 14:39 user2912826user2912826 531 silver badge4 bronze badges 3 |1 Answer
Reset to default 0I changed publishWebProjects from 'false' to 'true' and the intermittent errors went away.
本文标签: azure devopsInconsistent build behaviorStack Overflow
版权声明:本文标题:azure devops - Inconsistent build behavior - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309890a1934183.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
obj
andbin
folders in your self-hosted agent folderE:\agent\_work\57\s\foo\source\ABC\src\XYZ.Notification
, then rebuild the project and check if it works. To narrow down the issue, try to run the pipeline using a Microsoft-hosted agent, if it works, we can know the issue is related to the self-hosted agent or the local environment. – Ziyang Liu-MSFT Commented Nov 26, 2024 at 7:34