News for hackers. Stuff that matters.
Re:.NET 5.0 by SideburnsOfDoom on Wednesday November 11, 2020 @03:32AM (#25056578)
> it's just pointless boilerplate trash,

I don't regard the "ConfigurationBuilder" and following lines as "boilerplate" exactly, since by not using the default HostBuilder and instead including that code, you are making choices.

Specifically, you are choosing to pull in settings from "appsettings.json", "appsettings.{env}.json" and then environment vars, in that order, and specifying that both files are optional and should reload on change.

You can make other choices, with other code.The code is there to "configure the config", i.e. to make those choices.

There are no comments on this comment yet.