{"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/dnx-watch/pulls/comments/40500433","id":40500433,"diff_hunk":"@@ -0,0 +1,53 @@\n+﻿// Copyright (c) .NET Foundation. All rights reserved.\n+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n+\n+using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using Microsoft.Dnx.Runtime;\n+\n+namespace Microsoft.Dnx.Watcher.Core\n+{\n+    public class ProjectProvider : IProjectProvider\n+    {\n+        public bool TryReadProject(string projectFile, out IProject project, out string errors)\n+        {\n+            Runtime.Project runtimeProject;\n+            if (!TryGetProject(projectFile, out runtimeProject, out errors))\n+            {\n+                project = null;\n+                return false;\n+            }\n+\n+            errors = null;\n+            project = new Project(runtimeProject);\n+\n+            return true;\n+        }\n+        \n+        // Same as TryGetProject but it doesn't throw\n+        private bool TryGetProject(string projectFile, out Runtime.Project project, out string errorMessage)\n+        {\n+            try\n+            {\n+                ICollection<DiagnosticMessage> errors = new List<DiagnosticMessage>();\n+                if (!Runtime.Project.TryGetProject(projectFile, out project, errors))","path":"src/Microsoft.Dnx.Watcher.Core/Impl/ProjectProvider.cs","position":34,"original_position":34,"commit_id":"5a5fed2ccddd597da98028b116a6bbfaeecbe8e1","original_commit_id":"5a5fed2ccddd597da98028b116a6bbfaeecbe8e1","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},"body":"Get rid of Runtime.Project and just use Project","created_at":"2015-09-27T01:47:08Z","updated_at":"2015-09-27T01:47:08Z","html_url":"https://github.com/aspnet/dnx-watch/pull/1#discussion_r40500433","pull_request_url":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/aspnet/dnx-watch/pulls/comments/40500433"},"html":{"href":"https://github.com/aspnet/dnx-watch/pull/1#discussion_r40500433"},"pull_request":{"href":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1","id":45610763,"html_url":"https://github.com/aspnet/dnx-watch/pull/1","diff_url":"https://github.com/aspnet/dnx-watch/pull/1.diff","patch_url":"https://github.com/aspnet/dnx-watch/pull/1.patch","issue_url":"https://api.github.com/repos/aspnet/dnx-watch/issues/1","number":1,"state":"open","locked":false,"title":"First version of dnx watch","user":{"login":"victorhurdugaci","id":5921642,"avatar_url":"https://avatars.githubusercontent.com/u/5921642?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhurdugaci","html_url":"https://github.com/victorhurdugaci","followers_url":"https://api.github.com/users/victorhurdugaci/followers","following_url":"https://api.github.com/users/victorhurdugaci/following{/other_user}","gists_url":"https://api.github.com/users/victorhurdugaci/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhurdugaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhurdugaci/subscriptions","organizations_url":"https://api.github.com/users/victorhurdugaci/orgs","repos_url":"https://api.github.com/users/victorhurdugaci/repos","events_url":"https://api.github.com/users/victorhurdugaci/events{/privacy}","received_events_url":"https://api.github.com/users/victorhurdugaci/received_events","type":"User","site_admin":false},"body":"- Sending for orientation to get feedback.\r\n- Tests are missing\r\n\r\ncc @davidfowl @lodejard @glennc ","created_at":"2015-09-21T22:57:35Z","updated_at":"2015-09-27T01:47:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3585d241faf792f49f078a1c2645fcc2afe2cb9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1/commits","review_comments_url":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1/comments","review_comment_url":"https://api.github.com/repos/aspnet/dnx-watch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspnet/dnx-watch/issues/1/comments","statuses_url":"https://api.github.com/repos/aspnet/dnx-watch/statuses/5a5fed2ccddd597da98028b116a6bbfaeecbe8e1","head":{"label":"aspnet:victorhu/v0","ref":"victorhu/v0","sha":"5a5fed2ccddd597da98028b116a6bbfaeecbe8e1","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":42664941,"name":"dnx-watch","full_name":"aspnet/dnx-watch","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/dnx-watch","description":"dnx-watch command line tool","fork":false,"url":"https://api.github.com/repos/aspnet/dnx-watch","forks_url":"https://api.github.com/repos/aspnet/dnx-watch/forks","keys_url":"https://api.github.com/repos/aspnet/dnx-watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/dnx-watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/dnx-watch/teams","hooks_url":"https://api.github.com/repos/aspnet/dnx-watch/hooks","issue_events_url":"https://api.github.com/repos/aspnet/dnx-watch/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/dnx-watch/events","assignees_url":"https://api.github.com/repos/aspnet/dnx-watch/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/dnx-watch/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/dnx-watch/tags","blobs_url":"https://api.github.com/repos/aspnet/dnx-watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/dnx-watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/dnx-watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/dnx-watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/dnx-watch/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/dnx-watch/languages","stargazers_url":"https://api.github.com/repos/aspnet/dnx-watch/stargazers","contributors_url":"https://api.github.com/repos/aspnet/dnx-watch/contributors","subscribers_url":"https://api.github.com/repos/aspnet/dnx-watch/subscribers","subscription_url":"https://api.github.com/repos/aspnet/dnx-watch/subscription","commits_url":"https://api.github.com/repos/aspnet/dnx-watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/dnx-watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/dnx-watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/dnx-watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/dnx-watch/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/dnx-watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/dnx-watch/merges","archive_url":"https://api.github.com/repos/aspnet/dnx-watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/dnx-watch/downloads","issues_url":"https://api.github.com/repos/aspnet/dnx-watch/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/dnx-watch/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/dnx-watch/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/dnx-watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/dnx-watch/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/dnx-watch/releases{/id}","created_at":"2015-09-17T15:36:46Z","updated_at":"2015-09-17T15:40:44Z","pushed_at":"2015-09-26T23:38:05Z","git_url":"git://github.com/aspnet/dnx-watch.git","ssh_url":"git@github.com:aspnet/dnx-watch.git","clone_url":"https://github.com/aspnet/dnx-watch.git","svn_url":"https://github.com/aspnet/dnx-watch","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"dev"}},"base":{"label":"aspnet:dev","ref":"dev","sha":"62caf09ac4766f6b72dd184f4b047ba566f65bf5","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":42664941,"name":"dnx-watch","full_name":"aspnet/dnx-watch","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=3","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/dnx-watch","description":"dnx-watch command line tool","fork":false,"url":"https://api.github.com/repos/aspnet/dnx-watch","forks_url":"https://api.github.com/repos/aspnet/dnx-watch/forks","keys_url":"https://api.github.com/repos/aspnet/dnx-watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/dnx-watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/dnx-watch/teams","hooks_url":"https://api.github.com/repos/aspnet/dnx-watch/hooks","issue_events_url":"https://api.github.com/repos/aspnet/dnx-watch/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/dnx-watch/events","assignees_url":"https://api.github.com/repos/aspnet/dnx-watch/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/dnx-watch/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/dnx-watch/tags","blobs_url":"https://api.github.com/repos/aspnet/dnx-watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/dnx-watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/dnx-watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/dnx-watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/dnx-watch/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/dnx-watch/languages","stargazers_url":"https://api.github.com/repos/aspnet/dnx-watch/stargazers","contributors_url":"https://api.github.com/repos/aspnet/dnx-watch/contributors","subscribers_url":"https://api.github.com/repos/aspnet/dnx-watch/subscribers","subscription_url":"https://api.github.com/repos/aspnet/dnx-watch/subscription","commits_url":"https://api.github.com/repos/aspnet/dnx-watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/dnx-watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/dnx-watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/dnx-watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspnet/dnx-watch/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/dnx-watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/dnx-watch/merges","archive_url":"https://api.github.com/repos/aspnet/dnx-watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/dnx-watch/downloads","issues_url":"https://api.github.com/repos/aspnet/dnx-watch/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/dnx-watch/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/dnx-watch/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/dnx-watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/dnx-watch/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/dnx-watch/releases{/id}","created_at":"2015-09-17T15:36:46Z","updated_at":"2015-09-17T15:40:44Z","pushed_at":"2015-09-26T23:38:05Z","git_url":"git://github.com/aspnet/dnx-watch.git","ssh_url":"git@github.com:aspnet/dnx-watch.git","clone_url":"https://github.com/aspnet/dnx-watch.git","svn_url":"https://github.com/aspnet/dnx-watch","homepage":null,"size":192,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1"},"html":{"href":"https://github.com/aspnet/dnx-watch/pull/1"},"issue":{"href":"https://api.github.com/repos/aspnet/dnx-watch/issues/1"},"comments":{"href":"https://api.github.com/repos/aspnet/dnx-watch/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/dnx-watch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspnet/dnx-watch/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/dnx-watch/statuses/5a5fed2ccddd597da98028b116a6bbfaeecbe8e1"}}}}