Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Created November 26, 2019 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/f5e66e49a1532e35b26155c6a9e93587 to your computer and use it in GitHub Desktop.
Save MartinZikmund/f5e66e49a1532e35b26155c6a9e93587 to your computer and use it in GitHub Desktop.
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