Skip to content

Commit e368776

Browse files
committed
feat: mark the libraries as AOT compatible
1 parent 9452f83 commit e368776

9 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎src/Directory.Build.props‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
<PropertyGroup>
77
<TargetFrameworks>net472;netstandard2.0;netstandard2.1;net6.0;net8.0;net9.0;net10.0;net11.0</TargetFrameworks>
8+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
89
</PropertyGroup>
910

1011
<PropertyGroup>

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net10.0.awexpect-snapshot.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")]
2+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
13
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
24
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
35
public class FileHandles

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net11.0.awexpect-snapshot.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")]
2+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
13
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
24
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v11.0", FrameworkDisplayName = ".NET 11.0")]
35
public class FileHandles

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net8.0.awexpect-snapshot.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
12
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
23
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
34
public class FileHandles

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.TestingHelpers/net9.0.awexpect-snapshot.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
12
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
23
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
34
public class FileHandles

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net10.0.awexpect-snapshot.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[assembly: System.CLSCompliant(true)]
2+
[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")]
3+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
24
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
35
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
46
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net11.0.awexpect-snapshot.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[assembly: System.CLSCompliant(true)]
2+
[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")]
3+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
24
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
35
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
46
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v11.0", FrameworkDisplayName = ".NET 11.0")]

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net8.0.awexpect-snapshot.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[assembly: System.CLSCompliant(true)]
2+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
23
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
34
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
45
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]

‎tests/TestableIO.System.IO.Abstractions.Api.Tests/ApiApprovalTests/TestableIO.System.IO.Abstractions.Wrappers/net9.0.awexpect-snapshot.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[assembly: System.CLSCompliant(true)]
2+
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
23
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/TestableIO/System.IO.Abstractions.git")]
34
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
45
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]

0 commit comments

Comments
 (0)