{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/corert/pulls/comments/46216568","id":46216568,"diff_hunk":"@@ -76,6 +77,26 @@ echo.\n :: Eval the output from probe-win1.ps1\n for /f \"delims=\" %%a in ('powershell -NoProfile -ExecutionPolicy RemoteSigned \"& \"\"%__SourceDir%\\Native\\probe-win.ps1\"\"\"') do %%a\n \n+:GetDotNetCli\n+\n+set \"__DotNetCliPath=%__RootBinDir%\\tools\\cli\"\n+if not \"%__InstallCli%\"==\"\" (\n+    if exist \"%__DotNetCliPath%\" (rmdir /s /q \"%__DotNetCliPath%\")\n+    if not %ErrorLevel%==0 (\n+        echo \"Could not remove current installation of dotnet CLI\"\n+        exit /b 1\n+    )\n+)\n+if not exist \"%__DotNetCliPath%\" (\n+    for /f \"delims=\" %%a in ('powershell -NoProfile -ExecutionPolicy RemoteSigned \"& \"%__SourceDir%\\scripts\\install-cli.ps1\" -installdir \"%__RootBinDir%\\tools\"\"') do (\n+        echo \"\" > nul\n+    )\n+)\n+if not exist \"%__DotNetCliPath%\" (\n+    echo DotNet CLI could not be downloaded or installed.","path":"build.cmd","position":28,"original_position":28,"commit_id":"bd9fb68a2f97546e01e910d77f69f81dcd28e4ab","original_commit_id":"bd9fb68a2f97546e01e910d77f69f81dcd28e4ab","user":{"login":"MichalStrehovsky","id":13110571,"avatar_url":"https://avatars.githubusercontent.com/u/13110571?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalStrehovsky","html_url":"https://github.com/MichalStrehovsky","followers_url":"https://api.github.com/users/MichalStrehovsky/followers","following_url":"https://api.github.com/users/MichalStrehovsky/following{/other_user}","gists_url":"https://api.github.com/users/MichalStrehovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalStrehovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalStrehovsky/subscriptions","organizations_url":"https://api.github.com/users/MichalStrehovsky/orgs","repos_url":"https://api.github.com/users/MichalStrehovsky/repos","events_url":"https://api.github.com/users/MichalStrehovsky/events{/privacy}","received_events_url":"https://api.github.com/users/MichalStrehovsky/received_events","type":"User","site_admin":false},"body":"Do I understand this correctly that this is only needed to run tests? If so, do we want to fail the build so early?\r\n\r\nIt might make sense to move this entire green block down to when we're done building (so that it's also skippable with 'skiptestbuild' option)","created_at":"2015-11-30T22:52:26Z","updated_at":"2015-11-30T22:52:26Z","html_url":"https://github.com/dotnet/corert/pull/425#discussion_r46216568","pull_request_url":"https://api.github.com/repos/dotnet/corert/pulls/425","_links":{"self":{"href":"https://api.github.com/repos/dotnet/corert/pulls/comments/46216568"},"html":{"href":"https://github.com/dotnet/corert/pull/425#discussion_r46216568"},"pull_request":{"href":"https://api.github.com/repos/dotnet/corert/pulls/425"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/corert/pulls/425","id":51854260,"html_url":"https://github.com/dotnet/corert/pull/425","diff_url":"https://github.com/dotnet/corert/pull/425.diff","patch_url":"https://github.com/dotnet/corert/pull/425.patch","issue_url":"https://api.github.com/repos/dotnet/corert/issues/425","number":425,"state":"open","locked":false,"title":"Switch to dotnet tools and add unix testing","user":{"login":"schellap","id":10644403,"avatar_url":"https://avatars.githubusercontent.com/u/10644403?v=3","gravatar_id":"","url":"https://api.github.com/users/schellap","html_url":"https://github.com/schellap","followers_url":"https://api.github.com/users/schellap/followers","following_url":"https://api.github.com/users/schellap/following{/other_user}","gists_url":"https://api.github.com/users/schellap/gists{/gist_id}","starred_url":"https://api.github.com/users/schellap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schellap/subscriptions","organizations_url":"https://api.github.com/users/schellap/orgs","repos_url":"https://api.github.com/users/schellap/repos","events_url":"https://api.github.com/users/schellap/events{/privacy}","received_events_url":"https://api.github.com/users/schellap/received_events","type":"User","site_admin":false},"body":"Enables RyuJIT/CPP modes for Windows/Linux/OSX and switches restoration and testing to \"latest\" dotnet tools from dotnet/cli repo.","created_at":"2015-11-25T22:42:33Z","updated_at":"2015-11-30T22:52:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27ee41fe0422bb8c0e32defa68f55e0915aef2f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/corert/pulls/425/commits","review_comments_url":"https://api.github.com/repos/dotnet/corert/pulls/425/comments","review_comment_url":"https://api.github.com/repos/dotnet/corert/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/corert/issues/425/comments","statuses_url":"https://api.github.com/repos/dotnet/corert/statuses/bd9fb68a2f97546e01e910d77f69f81dcd28e4ab","head":{"label":"schellap:master","ref":"master","sha":"bd9fb68a2f97546e01e910d77f69f81dcd28e4ab","user":{"login":"schellap","id":10644403,"avatar_url":"https://avatars.githubusercontent.com/u/10644403?v=3","gravatar_id":"","url":"https://api.github.com/users/schellap","html_url":"https://github.com/schellap","followers_url":"https://api.github.com/users/schellap/followers","following_url":"https://api.github.com/users/schellap/following{/other_user}","gists_url":"https://api.github.com/users/schellap/gists{/gist_id}","starred_url":"https://api.github.com/users/schellap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schellap/subscriptions","organizations_url":"https://api.github.com/users/schellap/orgs","repos_url":"https://api.github.com/users/schellap/repos","events_url":"https://api.github.com/users/schellap/events{/privacy}","received_events_url":"https://api.github.com/users/schellap/received_events","type":"User","site_admin":false},"repo":{"id":46459928,"name":"corert","full_name":"schellap/corert","owner":{"login":"schellap","id":10644403,"avatar_url":"https://avatars.githubusercontent.com/u/10644403?v=3","gravatar_id":"","url":"https://api.github.com/users/schellap","html_url":"https://github.com/schellap","followers_url":"https://api.github.com/users/schellap/followers","following_url":"https://api.github.com/users/schellap/following{/other_user}","gists_url":"https://api.github.com/users/schellap/gists{/gist_id}","starred_url":"https://api.github.com/users/schellap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schellap/subscriptions","organizations_url":"https://api.github.com/users/schellap/orgs","repos_url":"https://api.github.com/users/schellap/repos","events_url":"https://api.github.com/users/schellap/events{/privacy}","received_events_url":"https://api.github.com/users/schellap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schellap/corert","description":"This repo contains CoreRT, a .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying .NET Native compiler toolchain.","fork":true,"url":"https://api.github.com/repos/schellap/corert","forks_url":"https://api.github.com/repos/schellap/corert/forks","keys_url":"https://api.github.com/repos/schellap/corert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schellap/corert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schellap/corert/teams","hooks_url":"https://api.github.com/repos/schellap/corert/hooks","issue_events_url":"https://api.github.com/repos/schellap/corert/issues/events{/number}","events_url":"https://api.github.com/repos/schellap/corert/events","assignees_url":"https://api.github.com/repos/schellap/corert/assignees{/user}","branches_url":"https://api.github.com/repos/schellap/corert/branches{/branch}","tags_url":"https://api.github.com/repos/schellap/corert/tags","blobs_url":"https://api.github.com/repos/schellap/corert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schellap/corert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schellap/corert/git/refs{/sha}","trees_url":"https://api.github.com/repos/schellap/corert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schellap/corert/statuses/{sha}","languages_url":"https://api.github.com/repos/schellap/corert/languages","stargazers_url":"https://api.github.com/repos/schellap/corert/stargazers","contributors_url":"https://api.github.com/repos/schellap/corert/contributors","subscribers_url":"https://api.github.com/repos/schellap/corert/subscribers","subscription_url":"https://api.github.com/repos/schellap/corert/subscription","commits_url":"https://api.github.com/repos/schellap/corert/commits{/sha}","git_commits_url":"https://api.github.com/repos/schellap/corert/git/commits{/sha}","comments_url":"https://api.github.com/repos/schellap/corert/comments{/number}","issue_comment_url":"https://api.github.com/repos/schellap/corert/issues/comments{/number}","contents_url":"https://api.github.com/repos/schellap/corert/contents/{+path}","compare_url":"https://api.github.com/repos/schellap/corert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schellap/corert/merges","archive_url":"https://api.github.com/repos/schellap/corert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schellap/corert/downloads","issues_url":"https://api.github.com/repos/schellap/corert/issues{/number}","pulls_url":"https://api.github.com/repos/schellap/corert/pulls{/number}","milestones_url":"https://api.github.com/repos/schellap/corert/milestones{/number}","notifications_url":"https://api.github.com/repos/schellap/corert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schellap/corert/labels{/name}","releases_url":"https://api.github.com/repos/schellap/corert/releases{/id}","created_at":"2015-11-19T01:46:15Z","updated_at":"2015-11-19T01:46:19Z","pushed_at":"2015-11-30T22:17:48Z","git_url":"git://github.com/schellap/corert.git","ssh_url":"git@github.com:schellap/corert.git","clone_url":"https://github.com/schellap/corert.git","svn_url":"https://github.com/schellap/corert","homepage":"http://dotnet.github.io/","size":4174,"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:master","ref":"master","sha":"87fc116236d67b0c1cb9c1e5241078c48d877d23","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":42552143,"name":"corert","full_name":"dotnet/corert","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/corert","description":"This repo contains CoreRT, a .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying .NET Native compiler toolchain.","fork":false,"url":"https://api.github.com/repos/dotnet/corert","forks_url":"https://api.github.com/repos/dotnet/corert/forks","keys_url":"https://api.github.com/repos/dotnet/corert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/corert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/corert/teams","hooks_url":"https://api.github.com/repos/dotnet/corert/hooks","issue_events_url":"https://api.github.com/repos/dotnet/corert/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/corert/events","assignees_url":"https://api.github.com/repos/dotnet/corert/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/corert/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/corert/tags","blobs_url":"https://api.github.com/repos/dotnet/corert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/corert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/corert/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/corert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/corert/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/corert/languages","stargazers_url":"https://api.github.com/repos/dotnet/corert/stargazers","contributors_url":"https://api.github.com/repos/dotnet/corert/contributors","subscribers_url":"https://api.github.com/repos/dotnet/corert/subscribers","subscription_url":"https://api.github.com/repos/dotnet/corert/subscription","commits_url":"https://api.github.com/repos/dotnet/corert/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/corert/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/corert/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/corert/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/corert/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/corert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/corert/merges","archive_url":"https://api.github.com/repos/dotnet/corert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/corert/downloads","issues_url":"https://api.github.com/repos/dotnet/corert/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/corert/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/corert/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/corert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/corert/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/corert/releases{/id}","created_at":"2015-09-15T23:10:53Z","updated_at":"2015-11-30T14:35:08Z","pushed_at":"2015-11-30T22:17:48Z","git_url":"git://github.com/dotnet/corert.git","ssh_url":"git@github.com:dotnet/corert.git","clone_url":"https://github.com/dotnet/corert.git","svn_url":"https://github.com/dotnet/corert","homepage":"http://dotnet.github.io/","size":4254,"stargazers_count":95,"watchers_count":95,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":93,"forks":39,"open_issues":93,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/corert/pulls/425"},"html":{"href":"https://github.com/dotnet/corert/pull/425"},"issue":{"href":"https://api.github.com/repos/dotnet/corert/issues/425"},"comments":{"href":"https://api.github.com/repos/dotnet/corert/issues/425/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/corert/pulls/425/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/corert/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/corert/pulls/425/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/corert/statuses/bd9fb68a2f97546e01e910d77f69f81dcd28e4ab"}}}}