[Enhancement] Add appsettings support
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
It would be useful to have a way for apps to build with different settings (ie: the `appsettings.json` file pattern already common with Microsoft.Extensions.*).
This is often done like in: https://github.com/dotnet/maui/pull/3872
There's discussion around removing hosting for .NET 6 MAUI GA: https://github.com/dotnet/maui/issues/4393
In the future we should find a path forward to support this.
One idea is to use a source generator to create the code to inject values from the .json files at build time so that we do not pay a performance price for reading and parsing json files from embedded resources.
Contributor guide
Research direction
Start by reviewing the linked .NET MAUI pull request #3872 and the discussion in issue #4393 to understand the existing appsettings and hosting approaches. Define a concrete supported path for build-time settings injection and clear completion criteria before choosing an implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100