Repository navigation
feat: mark the libraries as AOT compatible - #1222
Merged
Merged
Conversation
|
This pull request is merged. |
[Medium impact] The PR appears safe to merge.
|
Member
|
Thanks, @StefanGreve; I will create a new release shortly. |
vbreuss
added a commit
that referenced
this pull request
Nov 22, 2026
#1222 marks the libraries as AOT compatible, but the analyzers enabled by `IsAotCompatible` only see the libraries themselves. This adds a console app under `Tests/Aot` that is published with Native AOT for net8.0 and net10.0 on Ubuntu, Windows and macOS, with all trim and AOT warnings treated as errors, and runs the same checks with and without the JIT. The checks cover the places that depend on private members or type names of the base class library (BCL): the separator fix in the `FileSystemWatcherMock` of a simulated OS, the timeout detection of `WaitAsync` on the mock `TimeProvider`, and the real file system detection of the memory-mapped files. Breaking each of these in the source makes the matching check fail. The new `AotSmokeTests` pipeline target runs in `ci.yml` and `build.yml`, and the push jobs depend on it. The build schema is regenerated with the current Fallout version.
|
This is addressed in release v8.1.0. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets
IsAotCompatiblefornet8.0and later inSource/Directory.Build.props, with the condition from the Native AOT docs. The trim and AOT analyzers now run in this repository's build, and apps that setVerifyReferenceAotCompatibilityno longer get IL3058 for these assemblies.No source changes were needed. All seven libraries build without IL2xxx or IL3xxx warnings, and Native AOT apps built against this branch with
RealFileSystemand withMockFileSystempublish and run. The API snapshots gainIsTrimmablefromnet8.0andIsAotCompatiblefromnet10.0, and the getting started page now mentions trimming and Native AOT.Could you publish a core release once this is merged? The interface packages reach NuGet only through a
core/v*tag, and consumers of the main packages keep resolving the unmarked 11.0.0 until the floor of theirTestably.Abstractions.Interfacerange rises. The same change for TestableIO is in TestableIO/System.IO.Abstractions#1604.