Skip to content

Reject OpenHarmony in NativeAotSupported.props - #17723

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
springmin:fix/openharmony-nativeaot-supported
Oct 26, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
springmin:fix/openharmony-nativeaot-supported

Conversation

@springmin

Copy link
Copy Markdown
Contributor

NativeAotSupported.props rejects haiku, illumos, netbsd and solaris, but not openharmony. OpenHarmony has no cross-AOT toolchain, so consumers currently hardcode NativeAotSupported=false in their root Directory.Build.props (runtime, sdk, aspnetcore).

Add openharmony to the unsupported OS list so the property flows from Arcade and the local workarounds can be removed.

Follow-up to #17608 (OpenHarmony support in eng/common).

Note

This PR was drafted with AI assistance (agent tooling) under the author's direction.

springmin pushed a commit to springmin/aspnetcore-ohos that referenced this pull request Oct 25, 2026
Import NativeAotSupported.props in the testassets Directory.Build.props,
gate the E2E PublishAot on the property, and skip the NativeAOT E2E test
project when the target does not support NativeAOT.

The root override remains temporary until dotnet/arcade#17723 flows.
@akoeplinger
akoeplinger merged commit b24cfce into dotnet:main Oct 26, 2026
12 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 27, 2026
springmin pushed a commit to springmin/aspnetcore-ohos that referenced this pull request Oct 29, 2026
Import NativeAotSupported.props in the testassets Directory.Build.props,
gate the E2E PublishAot on the property, and skip the NativeAOT E2E test
project when the target does not support NativeAOT.

The root override remains temporary until dotnet/arcade#17723 flows.
springmin pushed a commit to springmin/aspnetcore-ohos that referenced this pull request Nov 6, 2026
Import NativeAotSupported.props in the testassets Directory.Build.props,
gate the E2E PublishAot on the property, and skip the NativeAOT E2E test
project when the target does not support NativeAOT.

The root override remains temporary until dotnet/arcade#17723 flows.
akoeplinger pushed a commit to dotnet/aspnetcore that referenced this pull request Nov 9, 2026
…#69952)

* Add the openharmony RIDs and skip repo-side NativeAOT for openharmony

- Directory.Build.props: add openharmony-x64/arm64 to the shared-framework
  supported RIDs, and set NativeAotSupported=false for openharmony: the repo's
  bundled tools and E2E AOT harnesses do not have the OpenHarmony cross-AOT
  toolchain wired up. This does not affect user AOT publishing, which uses the
  runtime ILCompiler pack.
- Directory.Packages.props: add the openharmony runtime and crossgen2 packages
  to the explicit runtime package list.
- src/Tools/Directory.Build.props: add the openharmony RIDs to the bundled
  tool RIDs.
- The E2E NativeAOT harnesses skip PublishAot for openharmony.

* Do not target openharmony RIDs in the bundled tools yet

* Retrigger CI (infrastructure failures)

* openharmony: use NativeAotSupported for the AOT test assets

Import NativeAotSupported.props in the testassets Directory.Build.props,
gate the E2E PublishAot on the property, and skip the NativeAOT E2E test
project when the target does not support NativeAOT.

The root override remains temporary until dotnet/arcade#17723 flows.

* openharmony: skip the AOT harness apps when NativeAOT is unsupported

* Remove temporary openharmony NativeAotSupported override

---------

Co-authored-by: springsources <[email protected]>
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.

2 participants