{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/1509","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/1509/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/1509/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/1509/events","html_url":"https://github.com/dotnet/cli/issues/1509","id":135033236,"number":1509,"title":"appsettings.json not found","user":{"login":"chrisjmccrum","id":1857216,"avatar_url":"https://avatars.githubusercontent.com/u/1857216?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisjmccrum","html_url":"https://github.com/chrisjmccrum","followers_url":"https://api.github.com/users/chrisjmccrum/followers","following_url":"https://api.github.com/users/chrisjmccrum/following{/other_user}","gists_url":"https://api.github.com/users/chrisjmccrum/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjmccrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjmccrum/subscriptions","organizations_url":"https://api.github.com/users/chrisjmccrum/orgs","repos_url":"https://api.github.com/users/chrisjmccrum/repos","events_url":"https://api.github.com/users/chrisjmccrum/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjmccrum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-20T04:51:37Z","updated_at":"2016-04-13T18:53:07Z","closed_at":"2016-02-20T05:27:02Z","body":"After moving to dotnet cli - my project can't seem to find the appsettings.json file when i run it from the command line.  I have my connection string stored for each env in seperate files and call it dynamically in my startup.  Below my snippet is the error I get now that didn't exist when my project was pure dnx.\r\n\r\n```\r\n        public IConfigurationRoot Configuration { get; set; }\r\n        public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)\r\n        {\r\n            IConfigurationBuilder builder = new ConfigurationBuilder()\r\n                .AddJsonFile(\"appsettings.json\")\r\n                .AddJsonFile($\"appsettings.{env.EnvironmentName}.json\", optional: true);\r\n\r\n\r\n            builder.AddEnvironmentVariables();\r\n            Configuration = builder.Build();\r\n        }\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1857216/13194539/15a84832-d763-11e5-9ba6-0b2ef9b3a03b.png)"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/209593219","html_url":"https://github.com/dotnet/cli/issues/1509#issuecomment-209593219","issue_url":"https://api.github.com/repos/dotnet/cli/issues/1509","id":209593219,"user":{"login":"ericwj","id":9473119,"avatar_url":"https://avatars.githubusercontent.com/u/9473119?v=3","gravatar_id":"","url":"https://api.github.com/users/ericwj","html_url":"https://github.com/ericwj","followers_url":"https://api.github.com/users/ericwj/followers","following_url":"https://api.github.com/users/ericwj/following{/other_user}","gists_url":"https://api.github.com/users/ericwj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericwj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericwj/subscriptions","organizations_url":"https://api.github.com/users/ericwj/orgs","repos_url":"https://api.github.com/users/ericwj/repos","events_url":"https://api.github.com/users/ericwj/events{/privacy}","received_events_url":"https://api.github.com/users/ericwj/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T18:53:07Z","updated_at":"2016-04-13T18:53:07Z","body":"I'm having this same issue after adding `builder.SetBasePath(appEnv.ApplicationBasePath)` on dotnet `1.0.0-rc2-002357` and I found \r\n`Console.WriteLine($\"{nameof(appEnv.ApplicationBasePath)}: {appEnv.ApplicationBasePath}\");` \r\nto write \r\n`ApplicationBasePath: C:\\Users\\Eric\\Source\\Playground\\AspNetCoreRC2\\src\\Web\\bin\\Debug\\netcoreapp1.0` \r\nThat folder only contains files starting with `Web.` after running `dotnet build`\r\n\r\nAm I missing something, or is this a problem with that build of the CLI?"}}