File tree Expand file tree Collapse file tree 5 files changed +9
-17
lines changed Expand file tree Collapse file tree 5 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 35
35
<MicrosoftAspNetWebApiWebHostPkgVer >[5.2.7,6.0)</MicrosoftAspNetWebApiWebHostPkgVer >
36
36
<MicrosoftAspNetWebPagesPkgVer >[3.2.7,4.0)</MicrosoftAspNetWebPagesPkgVer >
37
37
<MicrosoftExtensionsHostingPkgVer >[3.1.6,5.0)</MicrosoftExtensionsHostingPkgVer >
38
- <MicrosoftExtensionsLoggingPkgVer >[5.0.0,6.0)</MicrosoftExtensionsLoggingPkgVer >
39
- <MicrosoftExtensionsLoggingAbstractionsPkgVer >[5.0.0,6.0)</MicrosoftExtensionsLoggingAbstractionsPkgVer >
40
- <MicrosoftExtensionsLoggingConsolePkgVer >[5.0.0,6.0)</MicrosoftExtensionsLoggingConsolePkgVer >
38
+ <MicrosoftExtensionsLoggingPkgVer >[6.0.0,)</MicrosoftExtensionsLoggingPkgVer >
39
+ <MicrosoftExtensionsLoggingAbstractionsPkgVer >[6.0.0,)</MicrosoftExtensionsLoggingAbstractionsPkgVer >
41
40
<MicrosoftNETTestSdkPkgVer >[16.10.0]</MicrosoftNETTestSdkPkgVer >
42
41
<NewtonsoftJsonPkgVer >[12.0.2,13.0)</NewtonsoftJsonPkgVer >
43
42
<MoqPkgVer >[4.14.5,5.0)</MoqPkgVer >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
14
14
15
15
<ItemGroup >
16
16
<PackageReference Include =" BenchmarkDotNet" Version =" $(BenchmarkDotNetPkgVer)" />
17
+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" $(MicrosoftExtensionsLoggingPkgVer)" />
18
+ </ItemGroup >
19
+
20
+ <ItemGroup Condition =" '$(TargetFramework)' != 'net462'" >
21
+ <FrameworkReference Include =" Microsoft.AspNetCore.App" />
17
22
</ItemGroup >
18
23
19
24
<ItemGroup >
26
31
<ProjectReference Include =" $(RepoRoot)\src\OpenTelemetry.Instrumentation.AspNetCore\OpenTelemetry.Instrumentation.AspNetCore.csproj" />
27
32
<ProjectReference Include =" $(RepoRoot)\src\OpenTelemetry.Instrumentation.Http\OpenTelemetry.Instrumentation.Http.csproj" />
28
33
</ItemGroup >
29
-
30
- <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.1'" >
31
- <PackageReference Include =" Microsoft.AspNetCore.Hosting" Version =" 2.2.7" />
32
- <PackageReference Include =" Microsoft.AspNetCore.Server.Kestrel" Version =" 2.2.0" />
33
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 3.1.8" />
34
- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 3.1.8" />
35
- </ItemGroup >
36
-
37
34
</Project >
Original file line number Diff line number Diff line change 14
14
// limitations under the License.
15
15
// </copyright>
16
16
17
- #if NETCOREAPP3_1
18
17
using BenchmarkDotNet . Attributes ;
19
18
using Microsoft . Extensions . Logging ;
20
19
using OpenTelemetry ;
@@ -89,4 +88,3 @@ internal class DummyLogProcessor : BaseProcessor<LogRecord>
89
88
}
90
89
}
91
90
}
92
- #endif
Original file line number Diff line number Diff line change 14
14
// limitations under the License.
15
15
// </copyright>
16
16
17
- #if NETCOREAPP3_1
18
17
using System ;
19
18
using System . Collections . Generic ;
20
19
using System . Collections . ObjectModel ;
@@ -77,4 +76,3 @@ public void ForEachScope()
77
76
}
78
77
}
79
78
}
80
- #endif
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ Navigate to `./test/Benchmarks` directory and run the following command:
7
7
8
8
<!-- markdownlint-disable MD013 -->
9
9
``` sh
10
- dotnet run --framework netcoreapp3.1 --configuration Release --filter * TraceBenchmarks*
10
+ dotnet run --framework net6.0 --configuration Release --filter * TraceBenchmarks*
11
11
```
12
12
<!-- markdownlint-enable MD013 -->
You can’t perform that action at this time.
0 commit comments