-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
author-respondedAuthor responded, needs response from dev team.Author responded, needs response from dev team.bugstaleFor issues that haven't had activity in some time.For issues that haven't had activity in some time.triaged
Description
Issue Description
On the latest (as of dotnet/runtime@41ae1ae) commit of the runtime, the build gets stuck indefinitely. I tried building five times, pulling in latest changes, and clearing all artifacts. The build displays and gets stuck at Microsoft.NETCore.App.Runtime -> which is in the packing stage. It went up to one hour for one of the executions, before I killed it.
Steps to Reproduce
- Ensure that
DOTNET_CLI_USE_MSBUILD_SERVERis set to1. .\build.cmd -allconfigurations
Unable to attach binlog when building with -bl since the build was cancelled early.
Expected Behavior
Build is successful.
Actual Behavior
Build is stuck on Microsoft.NETCore.App.Runtime ->.
Analysis
Steps taken to debug:
- Attached a debugger to the host process, which seemed to just be stuck in
System.Threadingcode. - Process tree just shows a bunch of MSBuild.dll invocations:

- Using
procexp, I couldn't pinpoint a handle that referencedMicrosoft.NETCore.Runtime. - @hoyosjs suggested rebuilding with
DOTNET_CLI_USE_MSBUILD_SERVERset to0, and the build was successful.
Perhaps there's some deadlock in the msbuild server?
Versions & Configurations
- On Windows 11 x86_64
dotnet msbuild --versionprints
MSBuild version 17.4.0+18d5aef85 for .NET
17.4.0.51802
dotnet --versionprints7.0.100
/cc @rokonec
Metadata
Metadata
Assignees
Labels
author-respondedAuthor responded, needs response from dev team.Author responded, needs response from dev team.bugstaleFor issues that haven't had activity in some time.For issues that haven't had activity in some time.triaged