Skip to content

Commit f01db2b

Browse files
authored
Bump Microsoft.Extensions.Logging to net8 (#4920)
1 parent d76542e commit f01db2b

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Directory.Packages.props

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@
2727
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="[3.1.0,)" />
2828
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="[3.1.0,)" />
2929
<PackageVersion Include="Microsoft.Extensions.Hosting.Abstractions" Version="[2.1.0,)" />
30-
<PackageVersion Include="Microsoft.Extensions.Logging" Version="[3.1.0,)" />
30+
31+
<!--
32+
Typically, the latest stable version of Microsoft.Extensions.Logging should be used here because:
33+
1) Each major version bump will have some new API capabilities (e.g. .NET 6 introduced compile-time logging
34+
source generation, .NET 8 introduced automatic event id generation).
35+
2) Each minor version bump is normally security hotfixes or critical bug fixes.
36+
3) Since version 3.1.0, the .NET runtime team is holding a high bar for backward compatibility on
37+
Microsoft.Extensions.Logging even during major version bumps, so compatibility is not a concern here.
38+
-->
39+
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.0-rc.1.23419.4" />
40+
3141
<PackageVersion Include="Microsoft.Extensions.Logging.Configuration" Version="[3.1.0,)" />
3242
<PackageVersion Include="Microsoft.Extensions.Options" Version="[3.1.0,)" />
3343
<PackageVersion Include="OpenTelemetry" Version="$(OTelLatestStableVer)" />

docs/Directory.Packages.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
<Project>
22
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Packages.props, $(MSBuildThisFileDirectory)..))" />
3-
<ItemGroup>
4-
<PackageVersion Update="Microsoft.Extensions.Logging" Version="[6.0.0,)" />
5-
</ItemGroup>
63
</Project>

examples/Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Packages.props, $(MSBuildThisFileDirectory)..))" />
33
<ItemGroup>
4-
<PackageVersion Update="Microsoft.Extensions.Logging" Version="[6.0.0,)" />
54
<PackageVersion Update="System.Text.Json" Version="6.0.5" />
65
</ItemGroup>
76
</Project>

test/Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project>
22
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Packages.props, $(MSBuildThisFileDirectory)..))" />
33
<ItemGroup>
4-
<PackageVersion Update="Microsoft.Extensions.Logging" Version="[6.0.0,)" />
54
<PackageVersion Update="System.Text.Json" Version="6.0.5" />
65
</ItemGroup>
76
</Project>

0 commit comments

Comments
 (0)