File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1515 <!-- Suppress upgrade warning - we're using SDK's built-in analyzers -->
1616 <_SkipUpgradeNetAnalyzersNuGetWarning >true</_SkipUpgradeNetAnalyzersNuGetWarning >
1717 </PropertyGroup >
18+
19+ <PropertyGroup >
20+ <!-- Give each project its own obj directory to avoid cross-project locking -->
21+ <BaseIntermediateOutputPath Condition =" '$(BaseIntermediateOutputPath)' == ''" >$(MSBuildProjectDirectory)/obj/$(MSBuildProjectName)/</BaseIntermediateOutputPath >
22+ </PropertyGroup >
1823</Project >
Original file line number Diff line number Diff line change 3232 </PackageReleaseNotes >
3333 </PropertyGroup >
3434
35+ <PropertyGroup Condition =" '$(IsTopLevelBuildProject)' != 'true'" >
36+ <!-- When this project is built transitively we isolate its output to avoid file locking -->
37+ <CycloneDXParallelOutputRoot >$(MSBuildProjectDirectory)/bin/$(Configuration)/$(TargetFramework)/_references/$(MSBuildNodeId)/</CycloneDXParallelOutputRoot >
38+ <OutputPath >$(CycloneDXParallelOutputRoot)</OutputPath >
39+ <!-- Skip package generation for dependency builds to prevent repeated pack operations -->
40+ <GeneratePackageOnBuild >false</GeneratePackageOnBuild >
41+ </PropertyGroup >
42+
3543 <ItemGroup >
3644 <!-- Include build files in package -->
3745 <None Include =" build\**" Pack =" true" PackagePath =" build\" />
Original file line number Diff line number Diff line change 3030 <!-- This prevents parallel builds of the shared dependency that cause file locking -->
3131 <ProjectReference Include =" ../../src/CycloneDX.MSBuild/CycloneDX.MSBuild.csproj" >
3232 <ReferenceOutputAssembly >false</ReferenceOutputAssembly >
33+ <BuildInParallel >false</BuildInParallel >
3334 <Properties >GeneratePackageOnBuild=false</Properties >
3435 </ProjectReference >
3536
Original file line number Diff line number Diff line change 1515 <!-- Use project-specific intermediate output directories to prevent parallel build conflicts -->
1616 <!-- This ensures each project has its own obj/ directory even when building shared dependencies -->
1717 <BaseIntermediateOutputPath >$(MSBuildProjectDirectory)/obj/$(MSBuildProjectName)/</BaseIntermediateOutputPath >
18- <IntermediateOutputPath >$(BaseIntermediateOutputPath)$(Configuration)/</IntermediateOutputPath >
1918 </PropertyGroup >
2019</Project >
You can’t perform that action at this time.
0 commit comments