Appsettings
The appsettings.json
file serves as a configuration source for .NET core projects. The
appsettings configuration file is important for developers as it allows a standard JSON
configuration while also supporting user
secrets (opens in a new tab),
aiding in keeping sensitive data out of your
repository securely.
Conifx has a dedicated provider for the appsettings configuration file to provide support for user secrets in development.
Configuration
Field | Value |
---|---|
useUserSecrets | When true the confix build command will not replace the variable in the configuration file but rather use use secrets |
.confixrc
{
"component": {},
"project": {
"configurationFiles": [
{
"type": "appsettings",
"useUserSecrets": true
}
]
}
}