We support letting the user add an explicit ILCompiler package reference without specifying PublishAOT property (see test scenario here). This is as part of the user story for native AOT scenarios.
But we should generate an error when the targeted runtime major version is different from the package version as indicated in this issue comment.
We support letting the user add an explicit
ILCompilerpackage reference without specifyingPublishAOTproperty (see test scenario here). This is as part of the user story for native AOT scenarios.But we should generate an error when the targeted runtime major version is different from the package version as indicated in this issue comment.