Downgrade 7.0.0 Microsoft extensions packages to 6.0.0 #852
+12
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Microsoft.Bcl.AsyncInterfaces package is not required for .NET 6 and later. By multi-targeting both
netstandard2.0
andnet6.0
, we can add the dependency toMicrosoft.Bcl.AsyncInterfaces
only fornetstandard2.0
, while removing an unnecessary dependency on .NET 6 and later. Microsoft does the same for the DependencyInjection.Abstractions extensions package and many others (see dependencies tab).Also, targeting a Microsoft extension library with version 7.x can be quite annoying for several projects that are using version 6.x of these extensions libraries. Usually, these extensions packages are initially released on the same day than a major version of the framework. So 6.0.0 packages came out for .NET 6, and 7.0.0 packages came out for .NET 7. Also, the end-of-life (EOL) of these packages is bound to the EOL of the corresponding .NET framework. We saw that with .NET 5. So 6.x Microsoft extension libraries will have a longer lifetime than 7.x that will be deprecated sooner.
I believe that many consumer applications are still using these 6.x packages, and right now they are kind of "forced" to upgrade to the 7.x version, which doesn't bring any actual value. So my suggestion is the following: