{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/16629","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/16629/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/16629/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/16629/events","html_url":"https://github.com/dotnet/corefx/issues/16629","id":211530712,"number":16629,"title":"Proposed additions to RuntimeInformation","user":{"login":"leecow","id":2212879,"avatar_url":"https://avatars0.githubusercontent.com/u/2212879?v=3","gravatar_id":"","url":"https://api.github.com/users/leecow","html_url":"https://github.com/leecow","followers_url":"https://api.github.com/users/leecow/followers","following_url":"https://api.github.com/users/leecow/following{/other_user}","gists_url":"https://api.github.com/users/leecow/gists{/gist_id}","starred_url":"https://api.github.com/users/leecow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leecow/subscriptions","organizations_url":"https://api.github.com/users/leecow/orgs","repos_url":"https://api.github.com/users/leecow/repos","events_url":"https://api.github.com/users/leecow/events{/privacy}","received_events_url":"https://api.github.com/users/leecow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-02T21:57:01Z","updated_at":"2017-03-02T22:27:50Z","closed_at":null,"body":"https://github.com/dotnet/corefx/issues/12737\r\n\r\n# RuntimeInformation\r\n\r\n## Rational and Usage\r\n\r\nIt is often desirable and necessary for applications to determine execution environment and runtime information. Existing information provided by `System.Runtime.InteropServices.RuntimeInformation` could be enhanced and expanded with additional API to provide robust information.\r\n\r\n[System.Runtime.InteropServices.RuntimeInformation](https://github.com/dotnet/corefx/blob/master/src/System.Runtime.InteropServices.RuntimeInformation/ref/System.Runtime.InteropServices.RuntimeInformation.cs) currently provides surface for some of information though modification to current behavior or addition API may be needed.\r\n\r\n### Existing API\r\n\r\n* OSPlatform\r\n* ProcessAchitecture\r\n* OSArchitecture\r\n* OSDescription\r\n* FrameworkDescription\r\n* IsOSPlatform\r\n\r\n### Proposed additions\r\n\r\n* OSName - Windows, Mac, Ubuntu, Red Hat Enterprise Linux Server\r\n* OSVersion - following the previous examples - 10.0.15027, 10.12.3, 16.10, 7.2\r\n* RuntimeVersions - Runtime version currently used by the application, eg NETCore.App 1.0.4\r\n* InstalledRuntimeVersions - List of targetable runtime on system\r\n\r\n## Open Questions\r\n\r\n## Updates\r\n\r\n## Appendix\r\n\r\n`/etc/os-release` will have the pertinent information on all systemd-based distros. All distros in our current support set use systemd. Alpine Linux includes `/etc/os-release`.\r\nVariables can be accessed directly with `( source /etc/os-release && echo \"$PRETTY_NAME\" )`\r\n\r\n```\r\nFedora:\r\n\r\n\tNAME=Fedora\r\n\tVERSION=\"24 (Workstation Edition)\"\r\n\tID=fedora\r\n\tVERSION_ID=24\r\n\tPRETTY_NAME=\"Fedora 24 (Workstation Edition)\"\r\n\tANSI_COLOR=\"0;34\"\r\n\tCPE_NAME=\"cpe:/o:fedoraproject:fedora:24\"\r\n\tHOME_URL=\"https://fedoraproject.org/\"\r\n\tBUG_REPORT_URL=\"https://bugzilla.redhat.com/\"\r\n\tREDHAT_BUGZILLA_PRODUCT=\"Fedora\"\r\n\tREDHAT_BUGZILLA_PRODUCT_VERSION=24\r\n\tREDHAT_SUPPORT_PRODUCT=\"Fedora\"\r\n\tREDHAT_SUPPORT_PRODUCT_VERSION=24\r\n\tPRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy\r\n\tVARIANT=\"Workstation Edition\"\r\n\tVARIANT_ID=workstation\r\n\r\nAlpine:\r\n\r\n\tNAME=\"Alpine Linux\"\r\n\tID=alpine\r\n\tVERSION_ID=3.5.0\r\n\tPRETTY_NAME=\"Alpine Linux v3.5\"\r\n\tHOME_URL=\"http://alpinelinux.org\"\r\n\tBUG_REPORT_URL=\"http://bugs.alpinelinux.org\"\r\n```\r\n/cc @richlander , @mellinoe , @Petermarcu , @AlexGhiondea , @weshaggard , @danmosemsft "},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/283803076","html_url":"https://github.com/dotnet/corefx/issues/16629#issuecomment-283803076","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/16629","id":283803076,"user":{"login":"leecow","id":2212879,"avatar_url":"https://avatars0.githubusercontent.com/u/2212879?v=3","gravatar_id":"","url":"https://api.github.com/users/leecow","html_url":"https://github.com/leecow","followers_url":"https://api.github.com/users/leecow/followers","following_url":"https://api.github.com/users/leecow/following{/other_user}","gists_url":"https://api.github.com/users/leecow/gists{/gist_id}","starred_url":"https://api.github.com/users/leecow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leecow/subscriptions","organizations_url":"https://api.github.com/users/leecow/orgs","repos_url":"https://api.github.com/users/leecow/repos","events_url":"https://api.github.com/users/leecow/events{/privacy}","received_events_url":"https://api.github.com/users/leecow/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T22:27:50Z","updated_at":"2017-03-02T22:27:50Z","body":"I wouldn't think we would invent anything clever for OSVersion. Return what is readily offered by the system. In the Linux case it happens to look like a number.\r\n\r\nCould we rely on the contents of /share/Microsoft.NETCore.App or is that too naive?"}}
{"actor":{"display_login":"leecow"}}