Skip to content

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

Open
jkoritzinsky with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-linux-bionic-arm64-binaries
Open

Enable CoreCLR for linux-bionic platforms and include singlefilehost in AppHost pack#131115
jkoritzinsky with Copilot wants to merge 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

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

3 participants