Skip to content

Enable CoreCLR for linux-bionic platforms and include singlefilehost in AppHost pack#131115

Merged
jkoritzinsky merged 2 commits into
mainfrom
copilot/fix-linux-bionic-arm64-binaries
Jul 23, 2026
Merged

Enable CoreCLR for linux-bionic platforms and include singlefilehost in AppHost pack#131115
jkoritzinsky merged 2 commits into
mainfrom
copilot/fix-linux-bionic-arm64-binaries

Conversation

Copilot AI commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Single-file self-contained binaries for linux-bionic-arm64/x64 (Termux on Android) were silently falling back to apphost instead of singlefilehost, producing non-functional ~11MB binaries instead of the expected ~30MB bundles. Root cause: singlefilehost was explicitly excluded from the linux-bionic AppHost pack, and CoreCLR was never enabled for linux-bionic builds.

Changes

eng/Subsets.props

  • Enable CoreCLRSupported for linux-bionic on arm64 and x64 (mirrors Android pattern; excludes arm and x86)
  • Update DefaultSubsets for linux-bionic to clr+mono+libs+host+packs when CoreCLR is supported, with fallback to NativeAOT-only subsets for unsupported architectures
  • Add DefaultCoreClrSubsets for linux-bionic (matches Android/Apple Mobile: clr.native+clr.corelib+clr.tools+clr.nativecorelib+clr.packages+clr.nativeaotlibs+clr.crossarchtools)
  • Add RuntimeFlavor=CoreCLR condition for linux-bionic when clr subset is requested

src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Host.sfxproj

  • Remove the '$(TargetsLinuxBionic)' != 'true' guard from the singlefilehost NativeRuntimeAsset item — it is now built and should ship

Copilot AI review requested due to automatic review settings July 20, 2026 23:17

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.

Copilot was unable to review this pull request because there is no eligible user to bill. To allow Copilot reviews on bot-authored pull requests, enable direct organization billing in your organization's Copilot settings.

@azure-pipelines

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

…in AppHost pack

Co-authored-by: jkoritzinsky <1571408+jkoritzinsky@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 20, 2026 23:27

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.

Copilot was unable to review this pull request because there is no eligible user to bill. To allow Copilot reviews on bot-authored pull requests, enable direct organization billing in your organization's Copilot settings.

Copilot AI changed the title [WIP] Fix self-contained binary size for linux-bionic-arm64 Enable CoreCLR for linux-bionic platforms and include singlefilehost in AppHost pack Jul 20, 2026
Copilot AI requested a review from jkoritzinsky July 20, 2026 23:27
@jkoritzinsky
jkoritzinsky marked this pull request as ready for review July 21, 2026 02:49
@azure-pipelines

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

@elinor-fung

Copy link
Copy Markdown
Member

Is there a separate pipeline (maybe extra platforms?) we should kick off for this?

@jkoritzinsky

Copy link
Copy Markdown
Member

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@jkoritzinsky

Copy link
Copy Markdown
Member

@elinor-fung the bionic legs passed so we should be good to go

@jkoritzinsky
jkoritzinsky enabled auto-merge (squash) July 23, 2026 22:21
@jkoritzinsky

Copy link
Copy Markdown
Member

/ba-g osx failures unrelated to Linux-bionic only change

@jkoritzinsky
jkoritzinsky merged commit 22c5825 into main Jul 23, 2026
189 of 212 checks passed
@jkoritzinsky
jkoritzinsky deleted the copilot/fix-linux-bionic-arm64-binaries branch July 23, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

singlefile and selfcontained linux-bionic-arm64 (aka in Termux on Android ) binaries aren't actually selfcontained properly

4 participants