Skip to content

Limit extended flag usage to NET and CLR4 runtimes#13080

Merged
YuliiaKovalova merged 4 commits intomainfrom
exp/ykovalova/fix_dtb_vc
Jan 21, 2026
Merged

Limit extended flag usage to NET and CLR4 runtimes#13080
YuliiaKovalova merged 4 commits intomainfrom
exp/ykovalova/fix_dtb_vc

Conversation

@YuliiaKovalova
Copy link
Member

@YuliiaKovalova YuliiaKovalova commented Jan 21, 2026

Fixes #
VS insertion: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullRequest/701704#1768990369

C++ projects use clr2 for DTB and this change #13033 causes issues since an extended flag support wasn't added to the legacy environment by design.

Refactor TryCreateExtendedHeaderType to clarify conditions for extended header support.
Copilot AI review requested due to automatic review settings January 21, 2026 11:05
Copy link
Contributor

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

This PR aims to fix an issue introduced in PR #13033 where extended header support was enabled for CLR4 task hosts, but inadvertently broke CLR2 task hosts used by C++ projects for Design-Time Builds. The change attempts to limit extended flag usage to .NET Core+ and CLR4 runtimes, excluding CLR2.

Changes:

  • Modified TryCreateExtendedHeaderType method to explicitly check for NET or CLR4 flags before enabling extended headers
  • Added inline comment explaining that extended headers are supported by .NET Core+ and CLR4 but not CLR2

@YuliiaKovalova YuliiaKovalova enabled auto-merge (squash) January 21, 2026 13:14
@YuliiaKovalova YuliiaKovalova merged commit 89201ec into main Jan 21, 2026
5 of 10 checks passed
@YuliiaKovalova YuliiaKovalova deleted the exp/ykovalova/fix_dtb_vc branch January 21, 2026 15:14
johnazule pushed a commit to johnazule/msbuild that referenced this pull request Jan 22, 2026
Fixes #
VS insertion:
https://dev.azure.com/devdiv/DevDiv/_git/VS/pullRequest/701704#1768990369

C++ projects use clr2 for DTB and this change
dotnet#13033 causes issues since an
extended flag support wasn't added to the legacy environment by design.

---------

Co-authored-by: Copilot <[email protected]>
YuliiaKovalova added a commit that referenced this pull request Jan 22, 2026
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.

4 participants