lib for asp.net core dependency issues
Hey I want to move out and generalize certain api configurations, middlewares, etc.
One of these would be json options:
I have written extension method for it:
Should be working, but 'JsonOptions' definition is missing and I'm unable to figure out/find necessary nuget. So far I'm using these packages:
Any tips would be appreciated.
P.S. using .net 8
4 Replies
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
hmmm
so you're saying that I shouldnt configure it exclusively for controllers?
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
okay
but still
the thing is that in seperate lib, where I want to move out those configurations, some sort of ref/nuget is missing
so 'JsonOptions' definition is not available
I'm aware now that it can be in done multiple ways.
did more googling with different keywords and found the solution
still should refactor things to use minimal apis instead of controllers
what I can do is add this:
and all asp.net core definitions are going to be available