Opt-out or opt-in for build constants #4931
Labels
Csharp
Pull requests that update .net code
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:question
An issue that's a question
Is your feature request related to a problem? Please describe the problem.
The dotnet code generated has a ton of build constants (for nullability compatibility for everything pre .net3.1). Can we get rid of them? Possibly by using an opt-in if you want them (loose the years old compatibility), or by using an opt-out (and not making a breaking change for people using Kiota on anything pre .net core 3.1)
The following 9 lines will only be 2 lines, everywhere in the generated client.
Client library/SDK language
Csharp
Describe the solution you'd like
I would like to see all the build constants gone. I mean dotnet core 3.1 stopped being supported almost 2 years ago, so I think it's time to say goodbye to it.
And developers still targeting anything that doesn't support nullability might still want to opt-in to have code they can build by adding an optional parameter (but this would be a breaking change for them).
Additional context
No response
The text was updated successfully, but these errors were encountered: