{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/cli/pulls/comments/93337772","pull_request_review_id":13863435,"id":93337772,"diff_hunk":"@@ -189,19 +192,33 @@ private CommandSpec ResolveFromProjectTools(CommandResolverArguments commandReso\n             return commandSpec;\n         }\n \n-        private LockFile GetToolLockFile(\n+        private IEnumerable<string> GetPossiblePackageRoots(IProject project)\n+        {\n+            if (project.TryGetLockFile(out LockFile lockFile))\n+            {\n+                foreach (var packageFolder in lockFile.PackageFolders)\n+                {\n+                    yield return packageFolder.Path;\n+                }\n+            }\n+\n+            var nuGetPathContext = NuGetPathContext.Create(project.ProjectRoot);\n+            yield return nuGetPathContext.UserPackageFolder;\n+        }\n+\n+        private bool TryGetToolLockFile(","path":"src/Microsoft.DotNet.Cli.Utils/CommandResolution/ProjectToolsCommandResolver.cs","position":45,"original_position":45,"commit_id":"444dd6a031c8e2e0a9a957d7ce3bcd49bcc722b0","original_commit_id":"444dd6a031c8e2e0a9a957d7ce3bcd49bcc722b0","user":{"login":"livarcocc","id":367554,"avatar_url":"https://avatars.githubusercontent.com/u/367554?v=3","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"body":"Move this method below the next one. Let's keep the flow of the reading going.","created_at":"2016-12-20T22:19:07Z","updated_at":"2016-12-20T22:19:07Z","html_url":"https://github.com/dotnet/cli/pull/5102#discussion_r93337772","pull_request_url":"https://api.github.com/repos/dotnet/cli/pulls/5102","_links":{"self":{"href":"https://api.github.com/repos/dotnet/cli/pulls/comments/93337772"},"html":{"href":"https://github.com/dotnet/cli/pull/5102#discussion_r93337772"},"pull_request":{"href":"https://api.github.com/repos/dotnet/cli/pulls/5102"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/cli/pulls/5102","id":98817925,"html_url":"https://github.com/dotnet/cli/pull/5102","diff_url":"https://github.com/dotnet/cli/pull/5102.diff","patch_url":"https://github.com/dotnet/cli/pull/5102.patch","issue_url":"https://api.github.com/repos/dotnet/cli/issues/5102","number":5102,"state":"open","locked":false,"title":"fix tools when restoring with --packages","user":{"login":"krwq","id":660048,"avatar_url":"https://avatars.githubusercontent.com/u/660048?v=3","gravatar_id":"","url":"https://api.github.com/users/krwq","html_url":"https://github.com/krwq","followers_url":"https://api.github.com/users/krwq/followers","following_url":"https://api.github.com/users/krwq/following{/other_user}","gists_url":"https://api.github.com/users/krwq/gists{/gist_id}","starred_url":"https://api.github.com/users/krwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krwq/subscriptions","organizations_url":"https://api.github.com/users/krwq/orgs","repos_url":"https://api.github.com/users/krwq/repos","events_url":"https://api.github.com/users/krwq/events{/privacy}","received_events_url":"https://api.github.com/users/krwq/received_events","type":"User","site_admin":false},"body":"https://github.com/dotnet/cli/issues/1494\r\n\r\nfixes issue: when restoring with `--packages` and tool is not in the global cache it might not get detected\r\ncc: @piotrpMSFT @livarcocc @jgoshi @jonsequitur ","created_at":"2016-12-20T20:16:58Z","updated_at":"2016-12-20T22:19:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7117eca8ce7dae7abede4c1f7ee61aba5bbf17f4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/cli/pulls/5102/commits","review_comments_url":"https://api.github.com/repos/dotnet/cli/pulls/5102/comments","review_comment_url":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/5102/comments","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/444dd6a031c8e2e0a9a957d7ce3bcd49bcc722b0","head":{"label":"krwq:i1494tools","ref":"i1494tools","sha":"444dd6a031c8e2e0a9a957d7ce3bcd49bcc722b0","user":{"login":"krwq","id":660048,"avatar_url":"https://avatars.githubusercontent.com/u/660048?v=3","gravatar_id":"","url":"https://api.github.com/users/krwq","html_url":"https://github.com/krwq","followers_url":"https://api.github.com/users/krwq/followers","following_url":"https://api.github.com/users/krwq/following{/other_user}","gists_url":"https://api.github.com/users/krwq/gists{/gist_id}","starred_url":"https://api.github.com/users/krwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krwq/subscriptions","organizations_url":"https://api.github.com/users/krwq/orgs","repos_url":"https://api.github.com/users/krwq/repos","events_url":"https://api.github.com/users/krwq/events{/privacy}","received_events_url":"https://api.github.com/users/krwq/received_events","type":"User","site_admin":false},"repo":{"id":46476858,"name":"cli","full_name":"krwq/cli","owner":{"login":"krwq","id":660048,"avatar_url":"https://avatars.githubusercontent.com/u/660048?v=3","gravatar_id":"","url":"https://api.github.com/users/krwq","html_url":"https://github.com/krwq","followers_url":"https://api.github.com/users/krwq/followers","following_url":"https://api.github.com/users/krwq/following{/other_user}","gists_url":"https://api.github.com/users/krwq/gists{/gist_id}","starred_url":"https://api.github.com/users/krwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krwq/subscriptions","organizations_url":"https://api.github.com/users/krwq/orgs","repos_url":"https://api.github.com/users/krwq/repos","events_url":"https://api.github.com/users/krwq/events{/privacy}","received_events_url":"https://api.github.com/users/krwq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krwq/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":true,"url":"https://api.github.com/repos/krwq/cli","forks_url":"https://api.github.com/repos/krwq/cli/forks","keys_url":"https://api.github.com/repos/krwq/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krwq/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krwq/cli/teams","hooks_url":"https://api.github.com/repos/krwq/cli/hooks","issue_events_url":"https://api.github.com/repos/krwq/cli/issues/events{/number}","events_url":"https://api.github.com/repos/krwq/cli/events","assignees_url":"https://api.github.com/repos/krwq/cli/assignees{/user}","branches_url":"https://api.github.com/repos/krwq/cli/branches{/branch}","tags_url":"https://api.github.com/repos/krwq/cli/tags","blobs_url":"https://api.github.com/repos/krwq/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krwq/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krwq/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/krwq/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krwq/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/krwq/cli/languages","stargazers_url":"https://api.github.com/repos/krwq/cli/stargazers","contributors_url":"https://api.github.com/repos/krwq/cli/contributors","subscribers_url":"https://api.github.com/repos/krwq/cli/subscribers","subscription_url":"https://api.github.com/repos/krwq/cli/subscription","commits_url":"https://api.github.com/repos/krwq/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/krwq/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/krwq/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/krwq/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/krwq/cli/contents/{+path}","compare_url":"https://api.github.com/repos/krwq/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krwq/cli/merges","archive_url":"https://api.github.com/repos/krwq/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krwq/cli/downloads","issues_url":"https://api.github.com/repos/krwq/cli/issues{/number}","pulls_url":"https://api.github.com/repos/krwq/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/krwq/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/krwq/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krwq/cli/labels{/name}","releases_url":"https://api.github.com/repos/krwq/cli/releases{/id}","deployments_url":"https://api.github.com/repos/krwq/cli/deployments","created_at":"2015-11-19T07:56:22Z","updated_at":"2016-02-12T19:10:35Z","pushed_at":"2016-12-20T21:53:40Z","git_url":"git://github.com/krwq/cli.git","ssh_url":"git@github.com:krwq/cli.git","clone_url":"https://github.com/krwq/cli.git","svn_url":"https://github.com/krwq/cli","homepage":"http://dotnet.github.io/","size":27162,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:rel/1.0.0","ref":"rel/1.0.0","sha":"7a2c6ad086d96ba33ccd755a44fc80366093bfe1","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":43568107,"name":"cli","full_name":"dotnet/cli","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/cli","description":"This repo contains the .NET Core command-line (CLI) tools, used for building .NET Core apps and libraries through your development flow (compiling, NuGet package management, running, testing, ...).","fork":false,"url":"https://api.github.com/repos/dotnet/cli","forks_url":"https://api.github.com/repos/dotnet/cli/forks","keys_url":"https://api.github.com/repos/dotnet/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/cli/teams","hooks_url":"https://api.github.com/repos/dotnet/cli/hooks","issue_events_url":"https://api.github.com/repos/dotnet/cli/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/cli/events","assignees_url":"https://api.github.com/repos/dotnet/cli/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/cli/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/cli/tags","blobs_url":"https://api.github.com/repos/dotnet/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/cli/languages","stargazers_url":"https://api.github.com/repos/dotnet/cli/stargazers","contributors_url":"https://api.github.com/repos/dotnet/cli/contributors","subscribers_url":"https://api.github.com/repos/dotnet/cli/subscribers","subscription_url":"https://api.github.com/repos/dotnet/cli/subscription","commits_url":"https://api.github.com/repos/dotnet/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/cli/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/cli/merges","archive_url":"https://api.github.com/repos/dotnet/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/cli/downloads","issues_url":"https://api.github.com/repos/dotnet/cli/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/cli/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/cli/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/cli/deployments","created_at":"2015-10-02T18:03:15Z","updated_at":"2016-12-20T20:53:57Z","pushed_at":"2016-12-20T21:57:27Z","git_url":"git://github.com/dotnet/cli.git","ssh_url":"git@github.com:dotnet/cli.git","clone_url":"https://github.com/dotnet/cli.git","svn_url":"https://github.com/dotnet/cli","homepage":"https://docs.microsoft.com/dotnet/","size":30048,"stargazers_count":1672,"watchers_count":1672,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":488,"mirror_url":null,"open_issues_count":530,"forks":488,"open_issues":530,"watchers":1672,"default_branch":"rel/1.0.0"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/cli/pulls/5102"},"html":{"href":"https://github.com/dotnet/cli/pull/5102"},"issue":{"href":"https://api.github.com/repos/dotnet/cli/issues/5102"},"comments":{"href":"https://api.github.com/repos/dotnet/cli/issues/5102/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/cli/pulls/5102/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/cli/pulls/5102/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/cli/statuses/444dd6a031c8e2e0a9a957d7ce3bcd49bcc722b0"}}}}
{"actor":{"display_login":"livarcocc"}}