Skip to content

[NativeAOT] Clean up AOT Publishing #72415

@LakshanF

Description

@LakshanF

Given that building a native AOT application is supported only via the SDK (with the option to get the latest ILCompiler* packs via an explicit reference), the publish path with properties, items, tasks, and targets etc., should be cleaned up. The history of this code has been with specific goals that have changed over time,

  • The original code was added to only support explicit package references
  • SDK support was added for PublishAot with backward compatibility support (for a short period) for the explicit package reference without the SDK path
  • The current support allows SDK only as well as to add explicit package reference with SDK PublishAot. Explicit package reference takes precedence when one exists (for example, to pick up bug fixes in the package earlier)

It should be easy to follow the publishing logic which currently is a little convoluted.

Specifically,

Regarding removing IlcCalledViaPackage, see this comment and dotnet/corert#5123

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions