Skip to content

Conversation

benwitmanmsft
Copy link
Contributor

The _ProcessTextReplacementFiles target specifies an invalid expression in its Outputs attribute leading to MSBuild not properly checking the output and always rebuilding this target. This was found while prototyping a new set of functionality in MSBuild that is more strict about input and output declarations and failed on this.

@Copilot Copilot AI review requested due to automatic review settings July 8, 2025 17:29
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jul 8, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 8, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a syntax error in the MSBuild Outputs attribute for the _ProcessTextReplacementFiles target to ensure proper output tracking and prevent unnecessary rebuilds.

  • Corrects a missing closing quote in the Outputs metadata transform.
  • Restores valid MSBuild expression so outputs are recognized.
Comments suppressed due to low confidence (1)

eng/ReplaceText.targets:62

  • The transform string in the Outputs attribute was missing its closing quote, causing MSBuild to treat it as an invalid expression and always rebuild. This addition correctly closes the quote so MSBuild can detect outputs properly.
    Outputs="@(_TextReplacementFile->'%(_TextReplacementIntermediateFile)')"

Copy link
Member

@radical radical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution! LGTM 👍

@radical radical enabled auto-merge (squash) July 9, 2025 19:36
@radical radical merged commit 658ae24 into dotnet:main Jul 9, 2025
497 of 499 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community-contribution Indicates that the PR has been added by a community member needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants