Fixing build warnings (#21044)
This commit is contained in:
parent
f7c26b3130
commit
d775e9d959
|
|
@ -11,5 +11,7 @@
|
||||||
<add key="aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
|
<add key="aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
|
||||||
<add key="aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
|
<add key="aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
|
||||||
<add key="roslyn-tools" value="https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json" />
|
<add key="roslyn-tools" value="https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json" />
|
||||||
|
<!-- Used for the SiteExtension 3.1 bits that are included in the 5.0 build -->
|
||||||
|
<add key="dotnet31-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json" />
|
||||||
</packageSources>
|
</packageSources>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
||||||
|
|
@ -18,22 +18,22 @@ namespace BenchmarkDotNet.Attributes
|
||||||
{
|
{
|
||||||
public FirstRequestConfig()
|
public FirstRequestConfig()
|
||||||
{
|
{
|
||||||
Add(ConsoleLogger.Default);
|
AddLogger(ConsoleLogger.Default);
|
||||||
Add(MarkdownExporter.GitHub);
|
AddExporter(MarkdownExporter.GitHub);
|
||||||
|
|
||||||
Add(MemoryDiagnoser.Default);
|
AddDiagnoser(MemoryDiagnoser.Default);
|
||||||
Add(StatisticColumn.OperationsPerSecond);
|
AddColumn(StatisticColumn.OperationsPerSecond);
|
||||||
Add(DefaultColumnProviders.Instance);
|
AddColumnProvider(DefaultColumnProviders.Instance);
|
||||||
|
|
||||||
Add(JitOptimizationsValidator.FailOnError);
|
AddValidator(JitOptimizationsValidator.FailOnError);
|
||||||
|
|
||||||
Add(Job.Default
|
AddJob(Job.Default
|
||||||
.With(CsProjCoreToolchain.From(NetCoreAppSettings.NetCoreApp21))
|
.WithToolchain(CsProjCoreToolchain.From(NetCoreAppSettings.NetCoreApp21))
|
||||||
.With(new GcMode { Server = true })
|
.WithGcMode(new GcMode { Server = true })
|
||||||
.WithIterationCount(10)
|
.WithIterationCount(10)
|
||||||
.WithInvocationCount(1)
|
.WithInvocationCount(1)
|
||||||
.WithUnrollFactor(1)
|
.WithUnrollFactor(1)
|
||||||
.With(RunStrategy.ColdStart));
|
.WithStrategy(RunStrategy.ColdStart));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,7 @@
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!-- No code in this project to compile. -->
|
||||||
|
<Target Name="Compile" />
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,6 @@
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- No code in this project to compile. -->
|
|
||||||
<Target Name="Compile" />
|
|
||||||
|
|
||||||
<!-- Cannot assume this project and Microsoft.AspNetCore.AzureAppServices.HostingStartup have the same package version. -->
|
<!-- Cannot assume this project and Microsoft.AspNetCore.AzureAppServices.HostingStartup have the same package version. -->
|
||||||
<Target Name="_GetHostingStartupPackageReference" BeforeTargets="GenerateHostingStartupDeps">
|
<Target Name="_GetHostingStartupPackageReference" BeforeTargets="GenerateHostingStartupDeps">
|
||||||
<!-- This target is defined in eng/targets/Packaging.targets and included in every C# and F# project. -->
|
<!-- This target is defined in eng/targets/Packaging.targets and included in every C# and F# project. -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue