{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/core-setup/pulls/comments/64988942","id":64988942,"diff_hunk":"@@ -10,39 +10,61 @@ public class HostVersion : Version\n         // are baked into the binary and is used to look up a serviced binary replacement.\n         //\n \n+        public struct VerInfo\n+        {\n+            public int Major;\n+            public int Minor;\n+            public int Patch;\n+            public string Release;\n+            public string BuildMajor;\n+            public string BuildMinor;\n+\n+            public VerInfo(int major, int minor, int patch, string release, string buildMajor, string buildMinor)\n+            {\n+                Major = major;\n+                Minor = minor;\n+                Patch = patch;\n+                Release = release;\n+                BuildMajor = buildMajor;\n+                BuildMinor = buildMinor;\n+            }\n+\n+            public string WithoutSuffix => $\"{Major}.{Minor}.{Patch}\";\n+\n+            public string ToString()\n+            {\n+                return $\"{Major}.{Minor}.{Patch}-{Release}-{BuildMajor}-{BuildMinor}\";\n+            }\n+        }\n         //\n         // Latest hosts for production of nupkgs.\n         //\n \n-        // Version constants without suffix\n-        public override int Major => 1;\n-        public override int Minor => 0;\n-        public override int Patch => 1;\n-        public override string ReleaseSuffix => \"rc3\";\n-        public string LatestHostVersionNoSuffix => $\"{Major}.{Minor}.{Patch}\";\n-        public string LatestHostFxrVersionNoSuffix => $\"{Major}.{Minor}.{Patch}\";\n-        public string LatestHostPolicyVersionNoSuffix => $\"{Major}.{Minor}.{Patch}\";\n-        public string LatestHostPrerelease => ReleaseSuffix;\n-        public string LatestHostBuildMajor => $\"{CommitCountString}\";\n-        public string LatestHostBuildMinor => \"00\";\n-        public string LatestHostSuffix => $\"{ReleaseSuffix}-{LatestHostBuildMajor}-{LatestHostBuildMinor}\";\n-\n         // Full versions and package information.\n-        public string LatestHostVersion => $\"{LatestHostVersionNoSuffix}-{LatestHostSuffix}\";\n-        public string LatestHostFxrVersion => $\"{LatestHostFxrVersionNoSuffix}-{LatestHostSuffix}\";\n-        public string LatestHostPolicyVersion => $\"{LatestHostPolicyVersionNoSuffix}-{LatestHostSuffix}\";\n-        public Dictionary<string, string> LatestHostPackages => new Dictionary<string, string>()\n+        public string LatestHostPrerelease => \"rc3\";","path":"build_projects/shared-build-targets-utils/Utils/HostVersion.cs","position":52,"original_position":52,"commit_id":"1f57cc4bcf259a3e99a86273d56c98da7c973dd0","original_commit_id":"1f57cc4bcf259a3e99a86273d56c98da7c973dd0","user":{"login":"gkhanna79","id":9451457,"avatar_url":"https://avatars.githubusercontent.com/u/9451457?v=3","gravatar_id":"","url":"https://api.github.com/users/gkhanna79","html_url":"https://github.com/gkhanna79","followers_url":"https://api.github.com/users/gkhanna79/followers","following_url":"https://api.github.com/users/gkhanna79/following{/other_user}","gists_url":"https://api.github.com/users/gkhanna79/gists{/gist_id}","starred_url":"https://api.github.com/users/gkhanna79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkhanna79/subscriptions","organizations_url":"https://api.github.com/users/gkhanna79/orgs","repos_url":"https://api.github.com/users/gkhanna79/repos","events_url":"https://api.github.com/users/gkhanna79/events{/privacy}","received_events_url":"https://api.github.com/users/gkhanna79/received_events","type":"User","site_admin":false},"body":"Can this value comes from build environment? How would this be overriden by stable version in official builds?","created_at":"2016-05-28T13:30:06Z","updated_at":"2016-05-28T13:30:06Z","html_url":"https://github.com/dotnet/core-setup/pull/38#discussion_r64988942","pull_request_url":"https://api.github.com/repos/dotnet/core-setup/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/dotnet/core-setup/pulls/comments/64988942"},"html":{"href":"https://github.com/dotnet/core-setup/pull/38#discussion_r64988942"},"pull_request":{"href":"https://api.github.com/repos/dotnet/core-setup/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/core-setup/pulls/38","id":71788547,"html_url":"https://github.com/dotnet/core-setup/pull/38","diff_url":"https://github.com/dotnet/core-setup/pull/38.diff","patch_url":"https://github.com/dotnet/core-setup/pull/38.patch","issue_url":"https://api.github.com/repos/dotnet/core-setup/issues/38","number":38,"state":"open","locked":false,"title":"Embed version information in Windows binaries","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":"\r\n","created_at":"2016-05-28T01:06:17Z","updated_at":"2016-05-28T13:30:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"961e68212c552991a79130f048bc606e13d00a85","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/core-setup/pulls/38/commits","review_comments_url":"https://api.github.com/repos/dotnet/core-setup/pulls/38/comments","review_comment_url":"https://api.github.com/repos/dotnet/core-setup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/core-setup/issues/38/comments","statuses_url":"https://api.github.com/repos/dotnet/core-setup/statuses/1f57cc4bcf259a3e99a86273d56c98da7c973dd0","head":{"label":"schellap:ver-rc","ref":"ver-rc","sha":"1f57cc4bcf259a3e99a86273d56c98da7c973dd0","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":59710052,"name":"core-setup","full_name":"schellap/core-setup","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/core-setup","description":"","fork":true,"url":"https://api.github.com/repos/schellap/core-setup","forks_url":"https://api.github.com/repos/schellap/core-setup/forks","keys_url":"https://api.github.com/repos/schellap/core-setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schellap/core-setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schellap/core-setup/teams","hooks_url":"https://api.github.com/repos/schellap/core-setup/hooks","issue_events_url":"https://api.github.com/repos/schellap/core-setup/issues/events{/number}","events_url":"https://api.github.com/repos/schellap/core-setup/events","assignees_url":"https://api.github.com/repos/schellap/core-setup/assignees{/user}","branches_url":"https://api.github.com/repos/schellap/core-setup/branches{/branch}","tags_url":"https://api.github.com/repos/schellap/core-setup/tags","blobs_url":"https://api.github.com/repos/schellap/core-setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schellap/core-setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schellap/core-setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/schellap/core-setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schellap/core-setup/statuses/{sha}","languages_url":"https://api.github.com/repos/schellap/core-setup/languages","stargazers_url":"https://api.github.com/repos/schellap/core-setup/stargazers","contributors_url":"https://api.github.com/repos/schellap/core-setup/contributors","subscribers_url":"https://api.github.com/repos/schellap/core-setup/subscribers","subscription_url":"https://api.github.com/repos/schellap/core-setup/subscription","commits_url":"https://api.github.com/repos/schellap/core-setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/schellap/core-setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/schellap/core-setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/schellap/core-setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/schellap/core-setup/contents/{+path}","compare_url":"https://api.github.com/repos/schellap/core-setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schellap/core-setup/merges","archive_url":"https://api.github.com/repos/schellap/core-setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schellap/core-setup/downloads","issues_url":"https://api.github.com/repos/schellap/core-setup/issues{/number}","pulls_url":"https://api.github.com/repos/schellap/core-setup/pulls{/number}","milestones_url":"https://api.github.com/repos/schellap/core-setup/milestones{/number}","notifications_url":"https://api.github.com/repos/schellap/core-setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schellap/core-setup/labels{/name}","releases_url":"https://api.github.com/repos/schellap/core-setup/releases{/id}","deployments_url":"https://api.github.com/repos/schellap/core-setup/deployments","created_at":"2016-05-26T01:31:30Z","updated_at":"2016-05-26T01:31:32Z","pushed_at":"2016-05-28T05:01:46Z","git_url":"git://github.com/schellap/core-setup.git","ssh_url":"git@github.com:schellap/core-setup.git","clone_url":"https://github.com/schellap/core-setup.git","svn_url":"https://github.com/schellap/core-setup","homepage":null,"size":691,"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":"1b638378eee5dee90278c31e32dfffc25e0cbfff","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":59249196,"name":"core-setup","full_name":"dotnet/core-setup","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/core-setup","description":"Installer packages for the .NET Core runtime and libraries","fork":false,"url":"https://api.github.com/repos/dotnet/core-setup","forks_url":"https://api.github.com/repos/dotnet/core-setup/forks","keys_url":"https://api.github.com/repos/dotnet/core-setup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/core-setup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/core-setup/teams","hooks_url":"https://api.github.com/repos/dotnet/core-setup/hooks","issue_events_url":"https://api.github.com/repos/dotnet/core-setup/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/core-setup/events","assignees_url":"https://api.github.com/repos/dotnet/core-setup/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/core-setup/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/core-setup/tags","blobs_url":"https://api.github.com/repos/dotnet/core-setup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/core-setup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/core-setup/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/core-setup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/core-setup/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/core-setup/languages","stargazers_url":"https://api.github.com/repos/dotnet/core-setup/stargazers","contributors_url":"https://api.github.com/repos/dotnet/core-setup/contributors","subscribers_url":"https://api.github.com/repos/dotnet/core-setup/subscribers","subscription_url":"https://api.github.com/repos/dotnet/core-setup/subscription","commits_url":"https://api.github.com/repos/dotnet/core-setup/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/core-setup/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/core-setup/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/core-setup/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/core-setup/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/core-setup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/core-setup/merges","archive_url":"https://api.github.com/repos/dotnet/core-setup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/core-setup/downloads","issues_url":"https://api.github.com/repos/dotnet/core-setup/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/core-setup/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/core-setup/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/core-setup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/core-setup/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/core-setup/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/core-setup/deployments","created_at":"2016-05-19T23:07:13Z","updated_at":"2016-05-28T02:05:58Z","pushed_at":"2016-05-28T09:37:45Z","git_url":"git://github.com/dotnet/core-setup.git","ssh_url":"git@github.com:dotnet/core-setup.git","clone_url":"https://github.com/dotnet/core-setup.git","svn_url":"https://github.com/dotnet/core-setup","homepage":"","size":702,"stargazers_count":5,"watchers_count":5,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/core-setup/pulls/38"},"html":{"href":"https://github.com/dotnet/core-setup/pull/38"},"issue":{"href":"https://api.github.com/repos/dotnet/core-setup/issues/38"},"comments":{"href":"https://api.github.com/repos/dotnet/core-setup/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/core-setup/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/core-setup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/core-setup/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/core-setup/statuses/1f57cc4bcf259a3e99a86273d56c98da7c973dd0"}}}}
{"actor":{"display_login":"gkhanna79"}}