Skip to content

Commit 8f6e246

Browse files
committed
fix: fix benchmark project build
1 parent 258f505 commit 8f6e246

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

Diff for: perf/WeihanLi.Common.Benchmark/Program.cs

-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
using BenchmarkDotNet.Running;
2-
using Microsoft.Extensions.Configuration;
3-
using Microsoft.Extensions.DependencyInjection;
42

53
namespace WeihanLi.Common.Benchmark;
64

75
public class Program
86
{
97
public static void Main(string[] args)
108
{
11-
var configurationBuilder = new ConfigurationBuilder();
12-
configurationBuilder.AddJsonFile("appsettings.json");
13-
14-
var serviceCollection = new ServiceCollection();
15-
serviceCollection.AddSingleton<IConfiguration>(configurationBuilder.Build());
16-
DependencyResolver.SetDependencyResolver(serviceCollection);
17-
189
// BenchmarkRunner.Run<MapperTest>();
1910
// BenchmarkRunner.Run<CreateInstanceTest>();
2011
// BenchmarkRunner.Run<DITest>();

Diff for: perf/WeihanLi.Common.Benchmark/WeihanLi.Common.Benchmark.csproj

-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,4 @@
1616
<ItemGroup>
1717
<ProjectReference Include="..\..\src\WeihanLi.Common\WeihanLi.Common.csproj" />
1818
</ItemGroup>
19-
20-
<ItemGroup>
21-
<None Update="appsettings.json">
22-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
23-
</None>
24-
</ItemGroup>
2519
</Project>

Diff for: perf/WeihanLi.Common.Benchmark/appsettings.json

-11
This file was deleted.

0 commit comments

Comments
 (0)