File tree 3 files changed +0
-26
lines changed
perf/WeihanLi.Common.Benchmark
3 files changed +0
-26
lines changed Original file line number Diff line number Diff line change 1
1
using BenchmarkDotNet . Running ;
2
- using Microsoft . Extensions . Configuration ;
3
- using Microsoft . Extensions . DependencyInjection ;
4
2
5
3
namespace WeihanLi . Common . Benchmark ;
6
4
7
5
public class Program
8
6
{
9
7
public static void Main ( string [ ] args )
10
8
{
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
-
18
9
// BenchmarkRunner.Run<MapperTest>();
19
10
// BenchmarkRunner.Run<CreateInstanceTest>();
20
11
// BenchmarkRunner.Run<DITest>();
Original file line number Diff line number Diff line change 16
16
<ItemGroup >
17
17
<ProjectReference Include =" ..\..\src\WeihanLi.Common\WeihanLi.Common.csproj" />
18
18
</ItemGroup >
19
-
20
- <ItemGroup >
21
- <None Update =" appsettings.json" >
22
- <CopyToOutputDirectory >Always</CopyToOutputDirectory >
23
- </None >
24
- </ItemGroup >
25
19
</Project >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments