Skip to content

[release/dev18.3] Fix the generator building twice#81972

Merged
dibarbet merged 1 commit intorelease/dev18.3from
backport/pr-81950-to-release/dev18.3
Jan 12, 2026
Merged

[release/dev18.3] Fix the generator building twice#81972
dibarbet merged 1 commit intorelease/dev18.3from
backport/pr-81950-to-release/dev18.3

Conversation

@github-actions
Copy link
Contributor

Backport of #81950 to release/dev18.3

/cc @dibarbet @jasonmalinowski

Customer Impact

Regression

  • Yes
  • No

[If yes, specify when the regression was introduced. Provide the PR or commit if known.]

Testing

[How was the fix verified? How was the issue missed previously? What tests were added?]

Risk

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]

This explicit SetTargetFramework would have been necessary when
IntegrationTests.csproj targeted a TFM which wouldn't support a
netstandard2.0 reference. Since we're consuming this through a
ProjectReference, MSBuild will try to validate that the consumed
reference is compatible with our TFM, but by default won't realize
that if we're actually outputting this as an Analyzer type it won't
actually matter.

This is causing overbuilding though and since this project now targets
only netstandard2.0 compatible TFMs, we can just drop this.

Fixes dotnet/dotnet#4121
@github-actions github-actions bot requested a review from a team as a code owner January 12, 2026 20:31
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