From d75b0f5c471cfca4cfbcd1dfc16b7960a4f2845c Mon Sep 17 00:00:00 2001 From: StefanGreve Date: Sat, 21 Nov 2026 21:19:43 +0100 Subject: [PATCH] feat: mark the libraries as AOT compatible --- src/Directory.Build.props | 1 + .../net10.0.awexpect-snapshot.cs | 2 ++ .../net11.0.awexpect-snapshot.cs | 2 ++ .../net8.0.awexpect-snapshot.cs | 1 + .../net9.0.awexpect-snapshot.cs | 1 + .../net10.0.awexpect-snapshot.cs | 2 ++ .../net11.0.awexpect-snapshot.cs | 2 ++ .../net8.0.awexpect-snapshot.cs | 1 + .../net9.0.awexpect-snapshot.cs | 1 + 9 files changed, 13 insertions(+) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 3528a106c..9ea893ad6 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -5,6 +5,7 @@ net472;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0;net10.0;net11.0 + true diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net10.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net10.0.awexpect-snapshot.cs index 1cffbea96..b929abf7d 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net10.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net10.0.awexpect-snapshot.cs @@ -1,3 +1,5 @@ +[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")] public class FileHandles diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net11.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net11.0.awexpect-snapshot.cs index 1b221ac74..d27f6c000 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net11.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net11.0.awexpect-snapshot.cs @@ -1,3 +1,5 @@ +[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v11.0", FrameworkDisplayName = ".NET 11.0")] public class FileHandles diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net8.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net8.0.awexpect-snapshot.cs index 975893ab5..ba0e73c7e 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net8.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net8.0.awexpect-snapshot.cs @@ -1,3 +1,4 @@ +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] public class FileHandles diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net9.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net9.0.awexpect-snapshot.cs index 4bd4e9ba4..45fd414d9 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net9.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net9.0.awexpect-snapshot.cs @@ -1,3 +1,4 @@ +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] public class FileHandles diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net10.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net10.0.awexpect-snapshot.cs index 662fa2254..ee14027a1 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net10.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net10.0.awexpect-snapshot.cs @@ -1,4 +1,6 @@ [assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")] diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net11.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net11.0.awexpect-snapshot.cs index 75394d1fb..4b9552331 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net11.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net11.0.awexpect-snapshot.cs @@ -1,4 +1,6 @@ [assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v11.0", FrameworkDisplayName = ".NET 11.0")] diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net8.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net8.0.awexpect-snapshot.cs index 41c270115..bc68cfb04 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net8.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net8.0.awexpect-snapshot.cs @@ -1,4 +1,5 @@ [assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net9.0.awexpect-snapshot.cs b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net9.0.awexpect-snapshot.cs index 44288d62c..b99f368fb 100644 --- a/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net9.0.awexpect-snapshot.cs +++ b/tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net9.0.awexpect-snapshot.cs @@ -1,4 +1,5 @@ [assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] [assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")] [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]