Skip to content

Conversation

@LakshanF
Copy link
Contributor

… (#74591)

  • Publishing a NativeAOT application is supported via the SDK and the 'old' unsupported way that we started via adding explicit package reference is discouraged. The explicit support is for very narrow scenarios like getting the latest fix on native AOT issues before the SDK exposes the fix via its official ILCompiler packages.

  • We also no longer support publishing an AOT application if the SDK property, PublishAOT, is not set and only the explicit package reference exists. We allowed this behavior (no PublishAOT specified) early in 7.0 when SDK support was not enabled but do not want to continue to support the old way now. SDK path is the only we way want to support except for the narrow scenario described above where PublishAOT is still required for that scenario to work.

  • Apply suggestions from code review

Co-authored-by: Jan Kotas [email protected]

  • Fix issue 27239

  • Apply suggestions from code review

Co-authored-by: Sven Boemer [email protected]

  • exclude the warning for direct targets file invoke cases

Co-authored-by: Jan Kotas [email protected]
Co-authored-by: Sven Boemer [email protected]

…dotnet#74591)

* Show a warning when an explicit package reference to ILCompiler is added

* Apply suggestions from code review

Co-authored-by: Jan Kotas <[email protected]>

* Fix issue 27239

* Apply suggestions from code review

Co-authored-by: Sven Boemer <[email protected]>

* exclude the warning for direct targets file invoke cases

Co-authored-by: Jan Kotas <[email protected]>
Co-authored-by: Sven Boemer <[email protected]>
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved. once we have a green ci we can merge.

@carlossanlop
Copy link
Contributor

@LakshanF do any of the CI failures look related to your change?

@LakshanF
Copy link
Contributor Author

@carlossanlop, I don't think they are related. I thought the earlier failures were related to dotnet/arcade#10631 and re-ran but more started to fail.

@carlossanlop
Copy link
Contributor

Approved, signed off, and CI is green now. Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit 6f3db06 into dotnet:release/7.0 Aug 30, 2022
@am11 am11 mentioned this pull request Sep 2, 2022
29 tasks
@ghost ghost locked as resolved and limited conversation to collaborators Sep 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants