Previously we cannot because we have to support version 2.1.
Now we don't need to support 2.1 anymore, can we follow what's been done for System.Diagnostics.DiagnosticSource, considering the general guidance from the .NET team:
- You SHOULD use the latest stable version whenever possible, regardless of which version of runtime you are using.
- If you are using version 3.1.x ILogger, upgrade to the latest stable version. There shouldn't be breaking changes.
- If you are using version 1.x, 2.x or 3.0.x ILogger, upgrade to the latest stable version since these versions are no longer supported, except for the special case below:
- If you have existing dependency on version 2.1.x ILogger, and you are running ASP.NET Core 2.1 application on .NET Framework, use the latest patch version in the 2.1.x line until you're ready to move away from ASP.NET Core 2.1.
|
<MicrosoftExtensionsLoggingPkgVer>[3.1.0,)</MicrosoftExtensionsLoggingPkgVer> |
|
<SystemDiagnosticSourcePkgVer>6.0.0</SystemDiagnosticSourcePkgVer> |
Previously we cannot because we have to support version 2.1.
Now we don't need to support 2.1 anymore, can we follow what's been done for System.Diagnostics.DiagnosticSource, considering the general guidance from the .NET team:
opentelemetry-dotnet/build/Common.props
Line 36 in eaa9370
opentelemetry-dotnet/build/Common.props
Line 46 in eaa9370