feat: mark the libraries as AOT compatible

Merged
ST
3d ago
+44-1

Sets IsAotCompatible for net8.0 and later in Source/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 set VerifyReferenceAotCompatibility no 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 RealFileSystem and with MockFileSystem publish and run. The API snapshots gain IsTrimmable from net8.0 and IsAotCompatible from net10.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 their Testably.Abstractions.Interface range rises. The same change for TestableIO is in TestableIO/System.IO.Abstractions#1604.