Repository navigation
[release/10.0] Build Site Extension XDT helper as AnyCPU - #70543
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
maraf
approved these changes
Nov 20, 2026
Contributor
|
Hi @github-actions[bot]. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
[release/10.0] Build Site Extension XDT helper as AnyCPU
Make the XDT helper load across process architectures
Description
Backport of #70519 to release/10.0. The .NET 10 Site Extensions began building in VMR pass 2, where the runtime packages are built with
Platform=x86orPlatform=x64(#61004). The helper inherited that architecture, and a follow-up made the packages use architecture-specific helper outputs (#61233). Set the helper’sPlatformTargetto AnyCPU; keep the runtimes and native components architecture-specific.Fixes #66203
Customer Impact
On Azure App Service, the x86 .NET 10 Site Extension’s 32-bit-only helper fails to load during its configuration transform with
BadImageFormatException. The failed transform prevents the extension from adding its runtime toPATH, which can cause the app to use an older platform runtime and fail to start. This was reproduced on a 32-bit App Service app, and the customer’s logs show the same exception.Regression?
The .NET 8 and 9 Site Extension packages contained an AnyCPU helper. The regression was introduced with the .NET 10 VMR build changes.
Risk
Only the managed XDT helper’s architecture target changes. The Site Extension’s architecture-specific runtimes and native components remain unchanged.
Verification
Manual Azure App Service reproduction: the transform failed with the architecture-specific helper and succeeded with the AnyCPU helper. Automated x86 and x64 helper tests pass.
Packaging changes reviewed?
When servicing release/2.3