Skip to content

Allow extending metadata preserved by GetCopyToPublishDirectoryItems - #57053

Draft
nagilson with Copilot wants to merge 2 commits into
mainfrom
copilot/allow-extending-item-metadata
Draft

nagilson with Copilot wants to merge 2 commits into
mainfrom
copilot/allow-extending-item-metadata

Conversation

Copilot AI commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

GetCopyToPublishDirectoryItems drops metadata outside a fixed allowlist, preventing downstream SDKs from consuming custom metadata from local or referenced-project items.

  • Extensibility

    • Adds MSBuildGetCopyToPublishDirectoryAdditionalItemMetadataToCopy.
    • Appends its semicolon-separated values to the optimized metadata allowlist.
  • Behavior

    • Preserves requested metadata for current and referenced projects.
    • Retains existing filtering when the property is unset.
<PropertyGroup>
  <MSBuildGetCopyToPublishDirectoryAdditionalItemMetadataToCopy>
    $(MSBuildGetCopyToPublishDirectoryAdditionalItemMetadataToCopy);PublishFolderType
  </MSBuildGetCopyToPublishDirectoryAdditionalItemMetadataToCopy>
</PropertyGroup>

The property must be configured in every project where publish-item filtering occurs.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
3 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: nagilson <23152278+nagilson@users.noreply.github.com>
Copilot AI changed the title [WIP] Allow extending item metadata for GetCopyToPublishDirectoryItems Allow extending metadata preserved by GetCopyToPublishDirectoryItems Nov 11, 2026
Copilot AI requested a review from nagilson November 11, 2026 01:14

This branch has not been deployed

No deployments
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.

Allow extending the item metadata preserved by GetCopyToPublishDirectoryItems

2 participants