Skip to content

Commit 6bea07d

Browse files
committed
chore: add setting to suppress entrypoint generation for NativeAot
1 parent 262ca3e commit 6bea07d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ private string GenerateProjectForNuGetBuild(string projectFilePath, BuildPartiti
146146
<UseSharedCompilation>false</UseSharedCompilation>
147147
<Deterministic>true</Deterministic>
148148
<RunAnalyzers>false</RunAnalyzers>
149-
<IsTestingPlatformApplication>false</IsTestingPlatformApplication>
150149
<PublishAot Condition="$([MSBuild]::VersionGreaterThan('$(NETCoreSdkVersion)', '6.0'))">true</PublishAot>
151150
<IlcOptimizationPreference>{ilcOptimizationPreference}</IlcOptimizationPreference>
152151
<OptimizationPreference>{ilcOptimizationPreference}</OptimizationPreference>
@@ -159,6 +158,10 @@ private string GenerateProjectForNuGetBuild(string projectFilePath, BuildPartiti
159158
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> <!-- Suppress warning for nuget package used in old (unsupported) tfm. -->
160159
{GetInstructionSetSettings(buildPartition)}
161160
</PropertyGroup>
161+
<PropertyGroup>
162+
<IsTestingPlatformApplication>false</IsTestingPlatformApplication>
163+
<XunitAutoGeneratedEntryPoint>false</XunitAutoGeneratedEntryPoint>
164+
</PropertyGroup>
162165
{GetRuntimeSettings(buildPartition.RepresentativeBenchmarkCase.Job.Environment.Gc, buildPartition.Resolver)}
163166
<ItemGroup>
164167
<Compile Include="{Path.GetFileName(artifactsPaths.ProgramCodePath)}" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />

0 commit comments

Comments
 (0)