Fix MSB3539 by moving BaseIntermediateOutputPath to Directory.Build.props#220
Merged
atifaziz merged 2 commits intoroslyn-configs/mainfrom Feb 15, 2026
Merged
Conversation
…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
atifaziz
approved these changes
Feb 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BaseIntermediateOutputPathandBaseOutputPathfor the Roslyn 4.4 variant were set inDocoptNet.csproj, which is too late—MSBuild has already consumed these properties viaMicrosoft.Common.propsby that point, producing warning MSB3539.Moved both properties to
Directory.Build.props, which is imported beforeMicrosoft.Common.props:Directory.Build.props— Added conditionalPropertyGroup(RoslynVersion == 4.4) settingBaseOutputPathandBaseIntermediateOutputPathDocoptNet.csproj— Removed the two relocated properties from the Roslyn 4.4 block;DefaultItemExcludesandDefineConstantsremain (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.