-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withouttriaged
Description
Issue Description
Recently I came across circular dependency error that should not be thrown.
SimpleMultiProcTest.zip
here is a sample of 5 projects dependencies:
graph TD
ProjectA --> ProjectB
ProjectA --> ProjectC
ProjectC --> ProjectD
ProjectC --> ProjectE
When trying to build ProjectA there is sometimes MSB4006 error
Steps to Reproduce
- try to build ProjectA.csproj a few times until you see the error
- error:
dotnet build ProjectA.csproj
Restore complete (0,3s)
ProjectE failed with 1 error(s) (0,1s)
/usr/local/share/dotnet/sdk/9.0.301/Microsoft.Common.CurrentVersion.targets(2138,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "ResolveProjectReferences".
ProjectD failed with 1 error(s) (0,1s)
/usr/local/share/dotnet/sdk/9.0.301/Microsoft.Common.CurrentVersion.targets(2138,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "ResolveProjectReferences".
Build failed with 2 error(s) in 0,9s
Expected Behavior
there shouldn't be any circular dependency error
Actual Behavior
MSB4006 is thrown sometimes
Analysis
No response
Versions & Configurations
17.14.5.21107
Metadata
Metadata
Assignees
Labels
Priority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withouttriaged