Support multiple binary logs from command line arguments #12706
+386
−6
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.
MSBuild previously accepted multiple
-blflags but only wrote the last-specified binlog, preventing tools like CodeQL from controlling binlog output locations when users also specify binlogs.Changes
Smart multi-binlog handling
-blparameter sets to detect configuration differences beyond file pathsProjectImports=NonevsProjectImports=Embed)BinaryLogger enhancements
AdditionalFilePathsproperty to track copy destinationsExtractFilePathFromParameters()to parse file paths from parameter stringsExtractNonPathParameters()to extract and normalize configuration optionsShutdown()to copy binlog to additional paths with error handlingCommand-line processing
ProcessBinaryLogger()in XMake.cs with configuration detection logicExample
Both approaches produce identical binlogs when configurations match, and distinct binlogs when configurations differ.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.