Repro steps: Run `dotnet publish --use-current-runtime` on this project: `Test1.csproj` ```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> <OutputType>Exe</OutputType> <TargetFramework>net8.0</TargetFramework> <PublishAot>true</PublishAot> </PropertyGroup> <ItemGroup> <PackageReference Include="TUnit" Version="0.20.4" /> </ItemGroup> </Project> ``` Result: ``` \.nuget\packages\tunit.core\0.20.4\lib\net8.0\TUnit.Core.dll : warning IL2104: Assembly 'TUnit.Core' produced trim warnings. \.nuget\packages\tunit.engine\0.20.4\lib\net8.0\TUnit.Engine.dll : warning IL2104: Assembly 'TUnit.Engine' produced trim warnings. ILC : Trim analysis warning IL2026: TUnit.Engine.Services.ReflectionHooksCollector.CollectionTestSessionHooks(): Using member 'TUnit.Core.Helpers.ReflectionToSourceModelHelpers.BuildTestMethod(Type,MethodInf o,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Reflection. ILC : Trim analysis warning IL2026: TUnit.Engine.Services.ReflectionHooksCollector.CollectHooks(): Using member 'TUnit.Core.Helpers.ReflectionToSourceModelHelpers.BuildTestMethod(Type,MethodInfo,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Reflection. ILC : Trim analysis warning IL2026: TUnit.Core.AsyncConvert.ConvertObject(Object): Using member 'TUnit.Core.AsyncConvert.StartAsFSharpTask(Object,Type)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Dynamic code is required to call F# async methods. \.nuget\packages\tunit.core\0.20.4\lib\net8.0\TUnit.Core.dll : warning IL3053: Assembly 'TUnit.Core' produced AOT analysis warnings. ILC : Trim analysis warning IL2026: TUnit.Engine.Services.ReflectionScanner.<>c.<GetTypes>b__0_0(Assembly): Using member 'System.Reflection.Assembly.GetReferencedAssemblies()' which has 'RequiresUnreferenced CodeAttribute' can break functionality when trimming application code. Assembly references might be removed. ILC : Trim analysis warning IL2026: TUnit.Engine.Services.ReflectionScanner.<>c.<GetTypes>b__0_1(Assembly): Using member 'System.Reflection.Assembly.GetTypes()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. ``` I tested it with dotnet SDK `8.0.409` and `10.0.100-preview.3.25201.16` on Windows