cognitedata / oryx

.NET Cross platform and highly composable middleware for building web request handlers in F#
Apache License 2.0
202 stars 10 forks source link

Improve dependency handling #147

Open thompson-tomo opened 5 months ago

thompson-tomo commented 5 months ago

Is your feature request related to a problem? Please describe. I want to minimise dependencies in my project by utilising framework dependencies wherever possible

Describe the solution you'd like I want the package to not have an explicit dependency on System.Text.Json as it can be provided by the framework when targeting net 6.

Describe alternatives you've considered Accept the additional dependency

Additional context n/a

dbrattli commented 5 months ago

I'm not sure I understand. The package do not have an explicit depencency on System.Text.Json:

image

dbrattli commented 4 months ago

Ok, I think I understand this. You want the Oryx.SystemTextJson to be built for net6 (and probably net8) without the direct dependency on System.Text.Json? Not sure how we can make it a conditional dependency based on framework.