{"action":"created","comment":{"url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/comments/173228632","pull_request_review_id":102383769,"id":173228632,"diff_hunk":"@@ -0,0 +1,99 @@\n+\r\n+function Install-WhiskeyDotnetSdk\r\n+{\r\n+    <#\r\n+    .SYNOPSIS\r\n+    Installs the .NET Core SDK tooling.\r\n+\r\n+    .DESCRIPTION\r\n+    The `Install-WhiskeyDotnetSdk` function will install the .NET Core SDK tools and return the path to the installed `dotnet.exe` command. If you specify the `SearchExisting` switch then the function will first look for any globally installed .NET Core SDK's with the desired version already installed. If one is found, then install is skipped and the path to the global install is returned. The function uses the `dotnet-install.ps1` script from the [dotnet-cli](https://github.com/dotnet/cli) GitHub repository to download and install the SDK.\r\n+\r\n+    .EXAMPLE\r\n+    Install-WhiskeyDotnetSdk -InstallRoot 'C:\\Build\\.dotnet' -Version '2.1.4'\r\n+\r\n+    Demonstrates installing .NET Core SDK version 2.1.4 to the 'C:\\Build\\.dotnet' directory. After install the function will return the path 'C:\\Build\\.dotnet\\dotnet.exe'.\r\n+\r\n+    .EXAMPLE\r\n+    Install-WhiskeyDotnetSdk -InstallRoot 'C:\\Build\\.dotnet' -Version '2.1.4' -SearchExisting\r\n+\r\n+    Demonstrates searching for an existing global install of the .NET Core SDK version '2.1.4'. If not found globally, the SDK will be installed to 'C:\\Build\\.dotnet'.\r\n+    #>\r\n+    [CmdletBinding()]\r\n+    param(\r\n+        [Parameter(Mandatory=$true)]\r\n+        [string]\r\n+        # Directory where the .NET Core SDK will be installed.\r\n+        $InstallRoot,\r\n+\r\n+        [Parameter(Mandatory=$true)]\r\n+        [string]\r\n+        # Version of the .NET Core SDK to install.\r\n+        $Version,\r\n+\r\n+        [switch]\r\n+        # Search for the desired version from existing global installs of the .NET Core SDK. If found, the install is skipped and the path to the global install is returned.\r\n+        $SearchExisting\r","path":"Whiskey/Functions/Install-WhiskeyDotnetSdk.ps1","position":35,"original_position":35,"commit_id":"286dbca9715589f99bd1c35c6d5195a5d61e62d4","original_commit_id":"286dbca9715589f99bd1c35c6d5195a5d61e62d4","user":{"login":"splatteredbits","id":1082153,"avatar_url":"https://avatars1.githubusercontent.com/u/1082153?v=4","gravatar_id":"","url":"https://api.github.com/users/splatteredbits","html_url":"https://github.com/splatteredbits","followers_url":"https://api.github.com/users/splatteredbits/followers","following_url":"https://api.github.com/users/splatteredbits/following{/other_user}","gists_url":"https://api.github.com/users/splatteredbits/gists{/gist_id}","starred_url":"https://api.github.com/users/splatteredbits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splatteredbits/subscriptions","organizations_url":"https://api.github.com/users/splatteredbits/orgs","repos_url":"https://api.github.com/users/splatteredbits/repos","events_url":"https://api.github.com/users/splatteredbits/events{/privacy}","received_events_url":"https://api.github.com/users/splatteredbits/received_events","type":"User","site_admin":false},"body":"I reviewed the [list of standard PowerShell parameter names/types](https://msdn.microsoft.com/en-us/library/dd878352.aspx) and the closest I could find is `Scope`, but that's a string, not a switch. Since we both initially went with `Global`, let's use that. Hopefully, that's an indication that's what other developer will think/reach for.","created_at":"2018-03-08T17:20:20Z","updated_at":"2018-03-08T17:20:20Z","html_url":"https://github.com/webmd-health-services/Whiskey/pull/156#discussion_r173228632","pull_request_url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/comments/173228632"},"html":{"href":"https://github.com/webmd-health-services/Whiskey/pull/156#discussion_r173228632"},"pull_request":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156"}},"in_reply_to_id":173165963},"pull_request":{"url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156","id":173597028,"html_url":"https://github.com/webmd-health-services/Whiskey/pull/156","diff_url":"https://github.com/webmd-health-services/Whiskey/pull/156.diff","patch_url":"https://github.com/webmd-health-services/Whiskey/pull/156.patch","issue_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/156","number":156,"state":"open","locked":false,"title":"Feature/dotnet builds","user":{"login":"jlariono","id":30190605,"avatar_url":"https://avatars3.githubusercontent.com/u/30190605?v=4","gravatar_id":"","url":"https://api.github.com/users/jlariono","html_url":"https://github.com/jlariono","followers_url":"https://api.github.com/users/jlariono/followers","following_url":"https://api.github.com/users/jlariono/following{/other_user}","gists_url":"https://api.github.com/users/jlariono/gists{/gist_id}","starred_url":"https://api.github.com/users/jlariono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlariono/subscriptions","organizations_url":"https://api.github.com/users/jlariono/orgs","repos_url":"https://api.github.com/users/jlariono/repos","events_url":"https://api.github.com/users/jlariono/events{/privacy}","received_events_url":"https://api.github.com/users/jlariono/received_events","type":"User","site_admin":false},"body":"* Whiskey can now install the required version of the .NET Core SDK needed by \"DotNet\" tasks into a \".dotnet\" directory in the build root.\r\n* Added \"DotNetBuild\" task for building .NET Core and .NET Standard projects.\r\n* Added 'DotNetPack\" task for creating NuGet pacakges from .NET Core and .NET Standard projects.","created_at":"2018-03-07T22:52:33Z","updated_at":"2018-03-08T17:20:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5efdb1837a66a53db6c05d867f7741d3c677b095","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jeffprice6","id":26151533,"avatar_url":"https://avatars2.githubusercontent.com/u/26151533?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffprice6","html_url":"https://github.com/jeffprice6","followers_url":"https://api.github.com/users/jeffprice6/followers","following_url":"https://api.github.com/users/jeffprice6/following{/other_user}","gists_url":"https://api.github.com/users/jeffprice6/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffprice6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffprice6/subscriptions","organizations_url":"https://api.github.com/users/jeffprice6/orgs","repos_url":"https://api.github.com/users/jeffprice6/repos","events_url":"https://api.github.com/users/jeffprice6/events{/privacy}","received_events_url":"https://api.github.com/users/jeffprice6/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156/commits","review_comments_url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156/comments","review_comment_url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/156/comments","statuses_url":"https://api.github.com/repos/webmd-health-services/Whiskey/statuses/286dbca9715589f99bd1c35c6d5195a5d61e62d4","head":{"label":"webmd-health-services:feature/dotnet-builds","ref":"feature/dotnet-builds","sha":"286dbca9715589f99bd1c35c6d5195a5d61e62d4","user":{"login":"webmd-health-services","id":29462096,"avatar_url":"https://avatars3.githubusercontent.com/u/29462096?v=4","gravatar_id":"","url":"https://api.github.com/users/webmd-health-services","html_url":"https://github.com/webmd-health-services","followers_url":"https://api.github.com/users/webmd-health-services/followers","following_url":"https://api.github.com/users/webmd-health-services/following{/other_user}","gists_url":"https://api.github.com/users/webmd-health-services/gists{/gist_id}","starred_url":"https://api.github.com/users/webmd-health-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmd-health-services/subscriptions","organizations_url":"https://api.github.com/users/webmd-health-services/orgs","repos_url":"https://api.github.com/users/webmd-health-services/repos","events_url":"https://api.github.com/users/webmd-health-services/events{/privacy}","received_events_url":"https://api.github.com/users/webmd-health-services/received_events","type":"Organization","site_admin":false},"repo":{"id":95602988,"name":"Whiskey","full_name":"webmd-health-services/Whiskey","owner":{"login":"webmd-health-services","id":29462096,"avatar_url":"https://avatars3.githubusercontent.com/u/29462096?v=4","gravatar_id":"","url":"https://api.github.com/users/webmd-health-services","html_url":"https://github.com/webmd-health-services","followers_url":"https://api.github.com/users/webmd-health-services/followers","following_url":"https://api.github.com/users/webmd-health-services/following{/other_user}","gists_url":"https://api.github.com/users/webmd-health-services/gists{/gist_id}","starred_url":"https://api.github.com/users/webmd-health-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmd-health-services/subscriptions","organizations_url":"https://api.github.com/users/webmd-health-services/orgs","repos_url":"https://api.github.com/users/webmd-health-services/repos","events_url":"https://api.github.com/users/webmd-health-services/events{/privacy}","received_events_url":"https://api.github.com/users/webmd-health-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webmd-health-services/Whiskey","description":null,"fork":false,"url":"https://api.github.com/repos/webmd-health-services/Whiskey","forks_url":"https://api.github.com/repos/webmd-health-services/Whiskey/forks","keys_url":"https://api.github.com/repos/webmd-health-services/Whiskey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webmd-health-services/Whiskey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webmd-health-services/Whiskey/teams","hooks_url":"https://api.github.com/repos/webmd-health-services/Whiskey/hooks","issue_events_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/events{/number}","events_url":"https://api.github.com/repos/webmd-health-services/Whiskey/events","assignees_url":"https://api.github.com/repos/webmd-health-services/Whiskey/assignees{/user}","branches_url":"https://api.github.com/repos/webmd-health-services/Whiskey/branches{/branch}","tags_url":"https://api.github.com/repos/webmd-health-services/Whiskey/tags","blobs_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/refs{/sha}","trees_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webmd-health-services/Whiskey/statuses/{sha}","languages_url":"https://api.github.com/repos/webmd-health-services/Whiskey/languages","stargazers_url":"https://api.github.com/repos/webmd-health-services/Whiskey/stargazers","contributors_url":"https://api.github.com/repos/webmd-health-services/Whiskey/contributors","subscribers_url":"https://api.github.com/repos/webmd-health-services/Whiskey/subscribers","subscription_url":"https://api.github.com/repos/webmd-health-services/Whiskey/subscription","commits_url":"https://api.github.com/repos/webmd-health-services/Whiskey/commits{/sha}","git_commits_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/commits{/sha}","comments_url":"https://api.github.com/repos/webmd-health-services/Whiskey/comments{/number}","issue_comment_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/comments{/number}","contents_url":"https://api.github.com/repos/webmd-health-services/Whiskey/contents/{+path}","compare_url":"https://api.github.com/repos/webmd-health-services/Whiskey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webmd-health-services/Whiskey/merges","archive_url":"https://api.github.com/repos/webmd-health-services/Whiskey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webmd-health-services/Whiskey/downloads","issues_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues{/number}","pulls_url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls{/number}","milestones_url":"https://api.github.com/repos/webmd-health-services/Whiskey/milestones{/number}","notifications_url":"https://api.github.com/repos/webmd-health-services/Whiskey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webmd-health-services/Whiskey/labels{/name}","releases_url":"https://api.github.com/repos/webmd-health-services/Whiskey/releases{/id}","deployments_url":"https://api.github.com/repos/webmd-health-services/Whiskey/deployments","created_at":"2017-06-27T21:37:29Z","updated_at":"2017-08-23T16:09:22Z","pushed_at":"2018-03-07T23:45:57Z","git_url":"git://github.com/webmd-health-services/Whiskey.git","ssh_url":"git@github.com:webmd-health-services/Whiskey.git","clone_url":"https://github.com/webmd-health-services/Whiskey.git","svn_url":"https://github.com/webmd-health-services/Whiskey","homepage":null,"size":5487,"stargazers_count":6,"watchers_count":6,"language":"PowerShell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":1,"open_issues":14,"watchers":6,"default_branch":"develop"}},"base":{"label":"webmd-health-services:develop","ref":"develop","sha":"8aa3e74036bef94a781a33818842fe7d005c89a8","user":{"login":"webmd-health-services","id":29462096,"avatar_url":"https://avatars3.githubusercontent.com/u/29462096?v=4","gravatar_id":"","url":"https://api.github.com/users/webmd-health-services","html_url":"https://github.com/webmd-health-services","followers_url":"https://api.github.com/users/webmd-health-services/followers","following_url":"https://api.github.com/users/webmd-health-services/following{/other_user}","gists_url":"https://api.github.com/users/webmd-health-services/gists{/gist_id}","starred_url":"https://api.github.com/users/webmd-health-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmd-health-services/subscriptions","organizations_url":"https://api.github.com/users/webmd-health-services/orgs","repos_url":"https://api.github.com/users/webmd-health-services/repos","events_url":"https://api.github.com/users/webmd-health-services/events{/privacy}","received_events_url":"https://api.github.com/users/webmd-health-services/received_events","type":"Organization","site_admin":false},"repo":{"id":95602988,"name":"Whiskey","full_name":"webmd-health-services/Whiskey","owner":{"login":"webmd-health-services","id":29462096,"avatar_url":"https://avatars3.githubusercontent.com/u/29462096?v=4","gravatar_id":"","url":"https://api.github.com/users/webmd-health-services","html_url":"https://github.com/webmd-health-services","followers_url":"https://api.github.com/users/webmd-health-services/followers","following_url":"https://api.github.com/users/webmd-health-services/following{/other_user}","gists_url":"https://api.github.com/users/webmd-health-services/gists{/gist_id}","starred_url":"https://api.github.com/users/webmd-health-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webmd-health-services/subscriptions","organizations_url":"https://api.github.com/users/webmd-health-services/orgs","repos_url":"https://api.github.com/users/webmd-health-services/repos","events_url":"https://api.github.com/users/webmd-health-services/events{/privacy}","received_events_url":"https://api.github.com/users/webmd-health-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webmd-health-services/Whiskey","description":null,"fork":false,"url":"https://api.github.com/repos/webmd-health-services/Whiskey","forks_url":"https://api.github.com/repos/webmd-health-services/Whiskey/forks","keys_url":"https://api.github.com/repos/webmd-health-services/Whiskey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webmd-health-services/Whiskey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webmd-health-services/Whiskey/teams","hooks_url":"https://api.github.com/repos/webmd-health-services/Whiskey/hooks","issue_events_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/events{/number}","events_url":"https://api.github.com/repos/webmd-health-services/Whiskey/events","assignees_url":"https://api.github.com/repos/webmd-health-services/Whiskey/assignees{/user}","branches_url":"https://api.github.com/repos/webmd-health-services/Whiskey/branches{/branch}","tags_url":"https://api.github.com/repos/webmd-health-services/Whiskey/tags","blobs_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/refs{/sha}","trees_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webmd-health-services/Whiskey/statuses/{sha}","languages_url":"https://api.github.com/repos/webmd-health-services/Whiskey/languages","stargazers_url":"https://api.github.com/repos/webmd-health-services/Whiskey/stargazers","contributors_url":"https://api.github.com/repos/webmd-health-services/Whiskey/contributors","subscribers_url":"https://api.github.com/repos/webmd-health-services/Whiskey/subscribers","subscription_url":"https://api.github.com/repos/webmd-health-services/Whiskey/subscription","commits_url":"https://api.github.com/repos/webmd-health-services/Whiskey/commits{/sha}","git_commits_url":"https://api.github.com/repos/webmd-health-services/Whiskey/git/commits{/sha}","comments_url":"https://api.github.com/repos/webmd-health-services/Whiskey/comments{/number}","issue_comment_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/comments{/number}","contents_url":"https://api.github.com/repos/webmd-health-services/Whiskey/contents/{+path}","compare_url":"https://api.github.com/repos/webmd-health-services/Whiskey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webmd-health-services/Whiskey/merges","archive_url":"https://api.github.com/repos/webmd-health-services/Whiskey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webmd-health-services/Whiskey/downloads","issues_url":"https://api.github.com/repos/webmd-health-services/Whiskey/issues{/number}","pulls_url":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls{/number}","milestones_url":"https://api.github.com/repos/webmd-health-services/Whiskey/milestones{/number}","notifications_url":"https://api.github.com/repos/webmd-health-services/Whiskey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webmd-health-services/Whiskey/labels{/name}","releases_url":"https://api.github.com/repos/webmd-health-services/Whiskey/releases{/id}","deployments_url":"https://api.github.com/repos/webmd-health-services/Whiskey/deployments","created_at":"2017-06-27T21:37:29Z","updated_at":"2017-08-23T16:09:22Z","pushed_at":"2018-03-07T23:45:57Z","git_url":"git://github.com/webmd-health-services/Whiskey.git","ssh_url":"git@github.com:webmd-health-services/Whiskey.git","clone_url":"https://github.com/webmd-health-services/Whiskey.git","svn_url":"https://github.com/webmd-health-services/Whiskey","homepage":null,"size":5487,"stargazers_count":6,"watchers_count":6,"language":"PowerShell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":1,"open_issues":14,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156"},"html":{"href":"https://github.com/webmd-health-services/Whiskey/pull/156"},"issue":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/156"},"comments":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/webmd-health-services/Whiskey/statuses/286dbca9715589f99bd1c35c6d5195a5d61e62d4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"splatteredbits"}}