Skip to content

Enable NativeAOT dotnet CLI for Source Build#55329

Draft
baronfel wants to merge 3 commits into
mainfrom
baronfel-enable-aot-cli-source-build
Draft

Enable NativeAOT dotnet CLI for Source Build#55329
baronfel wants to merge 3 commits into
mainfrom
baronfel-enable-aot-cli-source-build

Conversation

@baronfel

@baronfel baronfel commented Jul 16, 2026

Copy link
Copy Markdown
Member

Summary

  • enable the NativeAOT dotnet CLI library for supported Source Build configurations
  • make Source Build TargetRid an exact supported RID for the regular runtime packs and ILCompiler pack, matching the existing Arcade/ASP.NET Core pattern without enabling the legacy RID graph
  • preserve linux-musl, Mono, cross-OS, unsupported-architecture, and Linux cross-toolchain exclusions
  • forward Source Build and target properties to the nested NativeAOT publish

Validation

  • verified same-host Source Build pack resolution succeeds with UseRidGraph=false
  • verified a CentOS Stream 10 evaluation selects Microsoft.NETCore.App.Runtime.centos.10-x64, Microsoft.AspNetCore.App.Runtime.centos.10-x64, and Microsoft.NETCore.App.Runtime.NativeAOT.centos.10-x64
  • built and NativeAOT-published dotnet-aot.csproj for win-x64
  • ran the NativeAOT CLI parser tests
  • verified supported and excluded layout eligibility cases through MSBuild property evaluation

Fixes #55283

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eaed26de-227d-466f-a063-c09bc7334995
@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.

@baronfel

Copy link
Copy Markdown
Member Author

/azp run sdk-unified-build

@azure-pipelines

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

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eaed26de-227d-466f-a063-c09bc7334995
@baronfel

Copy link
Copy Markdown
Member Author

/azp run sdk-unified-build

@azure-pipelines

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

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eaed26de-227d-466f-a063-c09bc7334995
@baronfel

Copy link
Copy Markdown
Member Author

/azp run sdk-unified-build

@azure-pipelines

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

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.

Enable NAOT dotnet CLI package for Source Build

1 participant