CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule

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

Open
#256 0 comments 0 reactions 0 assignees View on GitHub
enhancement nativeaot testing 🏗
Dominant language
C#
Stars
55
Forks
19
Avg merge
40m
Merged PRs (30d)
1

Description

## 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 https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.