How to read values from config.json in Console Application
问题 I just installed ASP.NET 5 and created a Console Application in Visual Studio. I've added a file, config.json, to the root folder of the project. It looks like this: { "Data": { "TargetFolderLocations": { "TestFolder1": "Some path", "TestFolder2": "Another path" } } } My Program.cs looks like this public void Main(string[] args) { var configurationBuilder = new ConfigurationBuilder(Environment.CurrentDirectory) .AddJsonFile("config.json") .AddEnvironmentVariables(); Configuration =