Skip to content

Add opt-in NativeAOT publish path#5057

Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
nativeaot-build-plan
Jul 8, 2026
Merged

Add opt-in NativeAOT publish path#5057
Gabriel Dufresne (GabrielDuf) merged 2 commits into
mainfrom
nativeaot-build-plan

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor
  • I have read the contributing guidelines, and I agree with the Code of Conduct.
  • Have you checked that there aren't other open pull requests for the same changes?
  • Have you tested that the committed code can be executed without errors?
  • Have you confirmed that this issue is caused by UniGetUI itself, and not by the package manager or the package involved?
    If the same issue can be reproduced outside UniGetUI with the relevant package manager or with the package itself, please report it there first. UniGetUI should only be used to track issues that are specific to UniGetUI's behavior or integration.

Adds an opt-in Windows x64 NativeAOT publish path without changing the existing Release/default publish flow.

Changes:

  • Adds Win-x64-NativeAot.pubxml for explicit NativeAOT publishing.
  • Adds scripts/publish-nativeaot.ps1 as the repeatable developer entry point.
  • Adds CI coverage to publish with the NativeAOT profile and report warnings.
  • Updates IPC JSON response writing to use source-generated metadata.
  • Documents the experimental NativeAOT workflow.
  • Ignores generated artifacts/ output.

Validation:

  • dotnet test src\UniGetUI.Windows.slnx --no-restore --verbosity q --nologo /p:Platform=x64 /p:UseSharedCompilation=false /m:1
  • pwsh .\scripts\publish-nativeaot.ps1
  • Smoke-launched artifacts\nativeaot\win-x64\UniGetUI.exe --help

Relates to NativeAOT build validation work.

Add a Windows x64 NativeAOT publish profile and helper script while keeping the existing release publish flow unchanged. Wire CI to report NativeAOT warnings and clean up first-party AOT-sensitive serialization and marshalling paths.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 830b579 into main Jul 8, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the nativeaot-build-plan branch July 8, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants