Skip to content

Fix MSB3539 by moving BaseIntermediateOutputPath to Directory.Build.props#220

Merged
atifaziz merged 2 commits intoroslyn-configs/mainfrom
copilot/fix-warnings-in-build-process
Feb 15, 2026
Merged

Fix MSB3539 by moving BaseIntermediateOutputPath to Directory.Build.props#220
atifaziz merged 2 commits intoroslyn-configs/mainfrom
copilot/fix-warnings-in-build-process

Conversation

Copy link

Copilot AI commented Feb 15, 2026

BaseIntermediateOutputPath and BaseOutputPath for the Roslyn 4.4 variant were set in DocoptNet.csproj, which is too late—MSBuild has already consumed these properties via Microsoft.Common.props by that point, producing warning MSB3539.

Moved both properties to Directory.Build.props, which is imported before Microsoft.Common.props:

  • Directory.Build.props — Added conditional PropertyGroup (RoslynVersion == 4.4) setting BaseOutputPath and BaseIntermediateOutputPath
  • DocoptNet.csproj — Removed the two relocated properties from the Roslyn 4.4 block; DefaultItemExcludes and DefineConstants remain (no early-evaluation requirement)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…MSB3539 warning

The MSB3539 warning occurs because BaseIntermediateOutputPath and
BaseOutputPath were being set in DocoptNet.csproj, which is too late
in the MSBuild evaluation order. These properties must be set before
Microsoft.Common.props is imported. Directory.Build.props is the
correct location since it's imported early enough.

Co-authored-by: atifaziz <20511+atifaziz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix MSB3539 warning during build process Fix MSB3539 by moving BaseIntermediateOutputPath to Directory.Build.props Feb 15, 2026
Copilot AI requested a review from atifaziz February 15, 2026 11:28
@atifaziz atifaziz marked this pull request as ready for review February 15, 2026 11:56
@atifaziz atifaziz merged commit 21e7b56 into roslyn-configs/main Feb 15, 2026
4 checks passed
@atifaziz atifaziz deleted the copilot/fix-warnings-in-build-process branch February 15, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants