{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Announcements/issues/13","labels_url":"https://api.github.com/repos/aspnet/Announcements/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Announcements/issues/13/comments","events_url":"https://api.github.com/repos/aspnet/Announcements/issues/13/events","html_url":"https://github.com/aspnet/Announcements/issues/13","id":72879531,"number":13,"title":"Configuration constructor requires full path if relative paths are used to add Configuration files","user":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Announcements/labels/Announcement","name":"Announcement","color":"fbca04"},{"url":"https://api.github.com/repos/aspnet/Announcements/labels/Breaking%20change","name":"Breaking change","color":"e11d21"}],"state":"open","locked":true,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/Announcements/milestones/2","html_url":"https://github.com/aspnet/Announcements/milestones/1.0.0-beta5","labels_url":"https://api.github.com/repos/aspnet/Announcements/milestones/2/labels","id":1062730,"number":2,"title":"1.0.0-beta5","description":"","creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":0,"state":"open","created_at":"2015-04-10T23:32:03Z","updated_at":"2015-07-22T20:36:59Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2015-05-03T23:03:35Z","updated_at":"2015-11-16T20:38:17Z","closed_at":null,"body":"Old code:\r\n\r\n```c#\r\npublic Startup(IHostingEnvironment env)\r\n{\r\n      // Setup configuration sources.\r\n      Configuration = new Configuration()\r\n         .AddJsonFile(\"config.json\")\r\n         .AddEnvironmentVariables();\r\n}\r\n```\r\n\r\nThis will throw the following exception now:\r\n\r\n```\r\nSystem.InvalidOperationException: Unable to resolve path 'config.json'; construct this IConfigurationSourceRoot with a non-null BasePath.\r\n```\r\n\r\nNew code:\r\n\r\n```c#\r\npublic Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)\r\n{\r\n      // Setup configuration sources.\r\n      Configuration = new Configuration(appEnv.ApplicationBasePath)\r\n         .AddJsonFile(\"config.json\")\r\n         .AddEnvironmentVariables();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/Announcements/issues/comments/157162395","html_url":"https://github.com/aspnet/Announcements/issues/13#issuecomment-157162395","issue_url":"https://api.github.com/repos/aspnet/Announcements/issues/13","id":157162395,"user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T20:38:17Z","updated_at":"2015-11-16T20:38:17Z","body":"@roydukkey IApplicationEnvironment is no longer required. See https://github.com/aspnet/Announcements/issues/88."}}