Title: Get-EnvironmentInformation does not properly check for CoreCLR · Issue #5581 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-EnvironmentInformation does not properly check for CoreCLR · Issue #5581 · PowerShell/PowerShell
X Title: Get-EnvironmentInformation does not properly check for CoreCLR · Issue #5581 · PowerShell/PowerShell
Description: The following code incorrectly reports that I am using CoreCLR on Windows PowerShell 5.1 PowerShell/build.psm1 Lines 100 to 117 in 7dce411 # Use the .NET Core APIs to determine the current platform. # If a runtime exception is thrown, we...
Open Graph Description: The following code incorrectly reports that I am using CoreCLR on Windows PowerShell 5.1 PowerShell/build.psm1 Lines 100 to 117 in 7dce411 # Use the .NET Core APIs to determine the current platform...
X Description: The following code incorrectly reports that I am using CoreCLR on Windows PowerShell 5.1 PowerShell/build.psm1 Lines 100 to 117 in 7dce411 # Use the .NET Core APIs to determine the current platform...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5581
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-EnvironmentInformation does not properly check for CoreCLR","articleBody":"The following code incorrectly reports that I am using CoreCLR on Windows PowerShell 5.1\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/7dce4116c7182c99db33c5ad202743abe7cc2d88/build.psm1#L100-L117\r\n\r\n\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nImport-Module .\\build.psm1\r\nGet-EnvironmentInformation\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nIsAdmin : False\r\nIsLinux : False\r\nIsCoreCLR : False\r\nIsWindows : True\r\nIsMacOS : False\r\nnugetPackagesRoot : C:\\Users\\MarkLocal\\.nuget\\packages\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nIsAdmin : False\r\nIsLinux : False\r\nIsCoreCLR : True\r\nIsWindows : True\r\nIsMacOS : False\r\nnugetPackagesRoot : C:\\Users\\MarkLocal\\.nuget\\packages\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 5.1.15063.726\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.15063.726\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\n```\r\n","author":{"url":"https://github.com/markekraus","@type":"Person","name":"markekraus"},"datePublished":"2017-11-29T22:37:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/5581/PowerShell/issues/5581"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ef4207b2-a2fe-1608-04a0-ebf17dde3bbd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8910:77B5A:4C9E06:705E46:6A5784B9 |
| html-safe-nonce | eadeceda4ebb27a04e05d707713e8a93f107f753349a91fe032542d6534af5fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTEwOjc3QjVBOjRDOUUwNjo3MDVFNDY6NkE1Nzg0QjkiLCJ2aXNpdG9yX2lkIjoiNTU5NzU0NDg0NjE3MTAxNDMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 29324571376fd298a8e21537f0a0779ddff0e2ca9bc9c7015cd3caf6869ba674 |
| hovercard-subject-tag | issue:277933214 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5581/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd1dcd65413315fc68c98cdc9e84222f367b67472530738d25ad701b5a0b4fdc/PowerShell/PowerShell/issues/5581 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd1dcd65413315fc68c98cdc9e84222f367b67472530738d25ad701b5a0b4fdc/PowerShell/PowerShell/issues/5581 |
| og:image:alt | The following code incorrectly reports that I am using CoreCLR on Windows PowerShell 5.1 PowerShell/build.psm1 Lines 100 to 117 in 7dce411 # Use the .NET Core APIs to determine the current platform... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markekraus |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6353e56e94423c9cd5abde7708a859afa36a0c1203c73749055bf6ee6704cd0 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f59ab1c46b638204e2aea09126d089be5dc773b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width