Skip to content

Commit b09431c

Browse files
Opt out of metadata trimming (#2020)
1 parent 5e62756 commit b09431c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ private string GenerateProjectForNuGetBuild(BuildPartition buildPartition, Artif
142142
<ItemGroup>
143143
<Compile Include=""{Path.GetFileName(artifactsPaths.ProgramCodePath)}"" Exclude=""bin\**;obj\**;**\*.xproj;packages\**"" />
144144
</ItemGroup>
145+
<ItemGroup>
146+
<TrimmerRootAssembly Include=""BenchmarkDotNet"" />
147+
</ItemGroup>
145148
<ItemGroup>
146149
<PackageReference Include=""Microsoft.DotNet.ILCompiler"" Version=""{ilCompilerVersion}"" />
147150
<ProjectReference Include=""{GetProjectFilePath(buildPartition.RepresentativeBenchmarkCase.Descriptor.Type, logger).FullName}"" />

0 commit comments

Comments
 (0)