Firstly add the appsettings.json file to the solution
1 | { |
Set the .json file to copy to the output directory (this is the bin folder)
Add Microsoft.Extensions.Configuration.Json from Nuget
The read the file
1 | IConfiguration config = new ConfigurationBuilder() |
Run the code!