Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable AOT (Ahead-of-Time) Compilation in Tests #256

Open
Arlodotexe opened this issue Feb 5, 2025 · 0 comments
Open

Enable AOT (Ahead-of-Time) Compilation in Tests #256

Arlodotexe opened this issue Feb 5, 2025 · 0 comments
Labels
nativeaot The dependency on dotnet NativeAOT testing 🏗

Comments

@Arlodotexe
Copy link
Member

Arlodotexe commented Feb 5, 2025

Background

While the original "why" behind AoT being disabled in tests is lost or unknown, the "why" behind enabling it now is known.

We are in the process of collecting and fixing the NativeAoT issues in the toolkit.

Problem

We'd like to be able to test more of the codebase with AoT than the sample app provides.

We could use our test projects, but AoT would need to be enabled.

Solution

Due to the nature of tests using shared projects, we're not able to toggle AoT for them individually.

We'll have to either enable csproj support for tests (see #101) or enable aot in all test projects simultaneously.

We've made progress towards AoT recently, but the Gallery App can only tell us so much. We'll need the ability to validate AoT issues using unit tests to ensure proper coverage long-term.

@Arlodotexe Arlodotexe moved this to 🆕 New in Toolkit 8.x Feb 5, 2025
@Arlodotexe Arlodotexe added nativeaot The dependency on dotnet NativeAOT testing 🏗 labels Feb 6, 2025
@Arlodotexe Arlodotexe moved this from 🆕 New to 🔖 Ready in Toolkit 8.x Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nativeaot The dependency on dotnet NativeAOT testing 🏗
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant