Skip to content

Update XML transform for apphost.exe - #55704

Merged
joeloff merged 1 commit into
dotnet:mainfrom
joeloff:apphost-transform
Aug 10, 2026
Merged

joeloff merged 1 commit into
dotnet:mainfrom
joeloff:apphost-transform

Conversation

@joeloff

@joeloff joeloff commented Aug 10, 2026

Copy link
Copy Markdown
Member

Update the XML transform to set the file ID for apphost.exe to a known value. The current transform is outdated since updating to WiX 5+

  • The schema has changed
  • HEAT generates the content a bit differently and the previous pattern won't match the node.

From the 10.0.103 build

image

Local build with the fix

image

Copilot AI lite review requested due to automatic review settings August 10, 2026 20:45
@azure-pipelines

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the WiX Heat XSLT transform used during Windows MSI harvesting so apphost.exe in the AppHostTemplate directory gets a stable, known File/@Id under WiX 5+ (v4 schema), addressing schema and Heat-output shape changes.

Changes:

  • Switch the transform’s WiX namespace to http://wixtoolset.org/schemas/v4/wxs (WiX 4/5 schema).
  • Update the match pattern to target the Heat-emitted Directory[@Name='AppHostTemplate']/Component/File shape instead of the older Wix/Fragment/ComponentGroup/.../File[contains(@Source,...)] layout.
  • Ensure the Id attribute is set to apphosttemplateapphostexe while preserving all other attributes/children (excluding any pre-existing Id).

@joeloff
joeloff merged commit 246ce2d into dotnet:main Aug 10, 2026
22 checks passed
@joeloff

joeloff commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

/backport to release/10.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@joeloff

joeloff commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

/backport to release/10.0.4xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.4xx (link to workflow run)

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.

3 participants