Skip to content

Native aot test app#626

Closed
gregsdennis wants to merge 4 commits into
native-aotfrom
native-aot-test-app
Closed

Native aot test app#626
gregsdennis wants to merge 4 commits into
native-aotfrom
native-aot-test-app

Conversation

@gregsdennis

Copy link
Copy Markdown
Collaborator

Depends on #624

@github-actions

github-actions Bot commented Jan 27, 2024

Copy link
Copy Markdown

Test Results

    15 files  ±0      15 suites  ±0   15s ⏱️ +2s
20 195 tests ±0  18 837 ✅ ±0  1 358 💤 ±0  0 ❌ ±0 
20 564 runs  ±0  19 158 ✅ ±0  1 406 💤 ±0  0 ❌ ±0 

Results for commit 8bc96da. ± Comparison against base commit 572a3aa.

♻️ This comment has been updated with latest results.

<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>

<PublishAot>true</PublishAot>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add:

		<IsTrimmable>true</IsTrimmable>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Doesn't PublishAot cover that?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

https://learn.microsoft.com/en-nz/dotnet/core/deploying/trimming/prepare-libraries-for-trimming?pivots=dotnet-8-0#enable-project-specific-trimming

The IsTrimmable property defaults to true when configuring a project as AOT-compatible with <IsAotCompatible>true</IsAotCompatible>.

Do we need to set that separately from PublishAot?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure. @Sergio0694 always tells me to include it, perhaps he can give better guidance.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If you use PublishAot, that's sufficient. IsAotCompatible is used for libraries, but if you're making an app, the former covers everything you need already 🙂

@gregsdennis gregsdennis marked this pull request as draft January 28, 2024 06:32
@gregsdennis gregsdennis mentioned this pull request Jan 29, 2024
17 tasks
@gregsdennis

Copy link
Copy Markdown
Collaborator Author

Closing this for now. I think forbidding reflection in the tests is sufficient.

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.

3 participants