You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting an instance of the configuration is done like this:
var builder = new ConfigurationBuilder()
.SetBasePath(env.ContentRootPath)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
var configuration = builder.Build();
var sytemLogLevel = configuration["Logging:System"];
Would be great to have intellisense on the last line of above example to type out "Logging:System".
One can also add user secrets to the builder, which is basically just include a json file stored somewhere else on the system, specific for the project ID. You can read more about that here: https://docs.asp.net/en/latest/security/app-secrets.html
To begin with, it would be great to just have intellisense for the properties configured appsettings.json
If you can include other sources, I guess that would be useful too, but maybe another milestone.
The text was updated successfully, but these errors were encountered:
Hello. Does this currently (or is it planned to) support the new configurations for ASP.NET Core 1.0?
There doesn't seem to be a schema, but there is a .json file available with the currently configured settings. Here's an example:
Getting an instance of the configuration is done like this:
Would be great to have intellisense on the last line of above example to type out "Logging:System".
One can also add user secrets to the builder, which is basically just include a json file stored somewhere else on the system, specific for the project ID. You can read more about that here: https://docs.asp.net/en/latest/security/app-secrets.html
To begin with, it would be great to just have intellisense for the properties configured appsettings.json
If you can include other sources, I guess that would be useful too, but maybe another milestone.
The text was updated successfully, but these errors were encountered: