OData / Extensions

ExtensionsLib: - Extensions for OData libraries and framework
MIT License
11 stars 19 forks source link

Remove version upper bound for Microsoft.Extensions dependencies #57

Closed fannydengdeng closed 2 years ago

fannydengdeng commented 2 years ago

This is needed to resolve NU1608 warnings for .NET 5 and .NET 6 projects.

Microsoft.OData.Extensions.V3Client 1.0.4 requires Microsoft.Extensions.DependencyInjection (>= 2.1.0 && < 4.0.0) but version Microsoft.Extensions.DependencyInjection 6.0.0 was resolved.
robertmclaws commented 2 years ago

I wouldn't personally recommend this. The pattern we use for Restier is to constrain the upper-bound to the latest unreleased version at the time of the build, in this case 7.0.0. If, after .NET 7 RTMs, you determine the package is still compatible, you should issue a point release to the package that increments the upper-bound of the supported versions to 8.0.0.

Removing the upper-bound entirely might create a situation where future DI releases may create an incompatibility that you cannot stop at the package level.