Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private readonly IConfigurationRoot _configurationRoot;
public AppConfig()
{
var builder = new ConfigurationBuilder()
.SetBasePath(Package.Current.InstalledLocation.Path)
.AddJsonFile("appsettings.json", optional: false);
_configurationRoot = builder.Build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment