Read connection from appsettings.json in .net core 1.1 web api
问题 I am create a web api project in .net core 1.1 but problem is when its try to read connectionstring from appsettings.json an exception occurs . System.IO.FileNotFoundException: 'The configuration file 'appsettings.json' was not found and is not optional. The physical path is 'C:\Test\netCoreWebApi\netCoreWebApi\bin\Debug\netcoreapp1.1\appsettings.json'.' Startup.cs public class Startup { public Startup(IHostingEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env