dotnet / dotnet/sdk

dotnet run file support settings.json when using WebApplication.CreateSilmBuilder

Open
#51,866 2 comments 0 reactions 0 assignees View on GitHub
Area-WebSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem? Please describe.

@DamianEdwards currently, we already support load settings.json config when using `WebApplication.Create`/`WebApplication.CreateBuilder`, while for AOT we may want to prefer to use the `WebApplication.CreateSlimBuilder`, when I use it the settings.json configuration does not load as expected as `WebApplication.CreateBuilder` does, since the file-based app enabled PublishAot by default, maybe better to support the settings.json for `WebApplication.CreateSlimBuilder` also?

### Describe the solution you'd like

Load the settings.json for `WebApplication.CreateSlimBuilder` also likes the appsettings.json

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.