Skip to content

Commit c367c05

Browse files
committed
fix: disable parallel builds for all Integration.Tests projects
Add BuildInParallel=false to SimpleProject and DisabledProject references in addition to MultiTargetProject. This ensures all Integration.Tests projects build sequentially to prevent concurrent access to the shared CycloneDX.MSBuild dependency. Without this, SimpleProject and DisabledProject can build in parallel with MultiTargetProject's inner framework builds, causing multiple simultaneous attempts to write CycloneDX.MSBuild.deps.json. Build order is now strictly sequential: 1. CycloneDX.MSBuild 2. SimpleProject 3. MultiTargetProject (net6.0, net8.0, netstandard2.0 - also sequential) 4. DisabledProject 5. Test project This fixes the macOS CI build failure with deps.json file locking.
1 parent c2d5d48 commit c367c05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/CycloneDX.MSBuild.Tests/CycloneDX.MSBuild.Tests.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@
3434
</ProjectReference>
3535

3636
<!-- Reference the test projects to ensure they're built before copying -->
37+
<!-- Disable parallel builds to prevent file locking on shared CycloneDX.MSBuild dependency -->
3738
<ProjectReference Include="../Integration.Tests/SimpleProject/SimpleProject.csproj">
3839
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
40+
<BuildInParallel>false</BuildInParallel>
3941
</ProjectReference>
40-
<!-- MultiTargetProject builds for 3 frameworks - prevent parallel builds to avoid file locking -->
4142
<ProjectReference Include="../Integration.Tests/MultiTargetProject/MultiTargetProject.csproj">
4243
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
4344
<BuildInParallel>false</BuildInParallel>
4445
</ProjectReference>
4546
<ProjectReference Include="../Integration.Tests/DisabledProject/DisabledProject.csproj">
4647
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
48+
<BuildInParallel>false</BuildInParallel>
4749
</ProjectReference>
4850
</ItemGroup>
4951

0 commit comments

Comments
 (0)