Title: Parse Error in PS5 · Issue #135 · PoshCode/ModuleBuilder · GitHub
Open Graph Title: Parse Error in PS5 · Issue #135 · PoshCode/ModuleBuilder
X Title: Parse Error in PS5 · Issue #135 · PoshCode/ModuleBuilder
Description: Module does not load in PowerShell 5.1, it seems to be unhappy with the below. ModuleBuilder/Source/Private/InitializeBuild.ps1 Lines 40 to 42 in e39342d Version = if (($V = $BuildInfo.SemVer.Split("+")[0].Split("-", 2)[0])) { [version]$...
Open Graph Description: Module does not load in PowerShell 5.1, it seems to be unhappy with the below. ModuleBuilder/Source/Private/InitializeBuild.ps1 Lines 40 to 42 in e39342d Version = if (($V = $BuildInfo.SemVer.Split...
X Description: Module does not load in PowerShell 5.1, it seems to be unhappy with the below. ModuleBuilder/Source/Private/InitializeBuild.ps1 Lines 40 to 42 in e39342d Version = if (($V = $BuildInfo.SemVer.Split...
Opengraph URL: https://github.com/PoshCode/ModuleBuilder/issues/135
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parse Error in PS5","articleBody":"Module does not load in PowerShell 5.1, it seems to be unhappy with the below.\n\nhttps://github.com/PoshCode/ModuleBuilder/blob/e39342d56f9790d9ca0afaced912abe373c11df4/Source/Private/InitializeBuild.ps1#L40-L42\n\nRun `Import-Module` in PS5 to reproduce. PS7 is fine.","author":{"url":"https://github.com/dan-hughes","@type":"Person","name":"dan-hughes"},"datePublished":"2025-02-16T14:46:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/135/ModuleBuilder/issues/135"}
| 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:89382128-4ab3-1a1f-f48f-fa37a1a6edf8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9736:345E2B:86015D:B9C771:697A6E82 |
| html-safe-nonce | 645b7df8739a3aea1204b9d49e2fa15621e2ef78d9790360e6914204b1ee042b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzM2OjM0NUUyQjo4NjAxNUQ6QjlDNzcxOjY5N0E2RTgyIiwidmlzaXRvcl9pZCI6IjY2MTgyMjk1OTA1MjkzMDYyNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8dd2245495e6afaf850d86f7403dee9be6f10a740ae2ed5c97b56e71ec8bdc0c |
| hovercard-subject-tag | issue:2856142462 |
| 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/PoshCode/ModuleBuilder/135/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95f7ddccce3c64159e72c856ce6d8b6941aabbbe9f700de038da2e8a16e3e0b4/PoshCode/ModuleBuilder/issues/135 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95f7ddccce3c64159e72c856ce6d8b6941aabbbe9f700de038da2e8a16e3e0b4/PoshCode/ModuleBuilder/issues/135 |
| og:image:alt | Module does not load in PowerShell 5.1, it seems to be unhappy with the below. ModuleBuilder/Source/Private/InitializeBuild.ps1 Lines 40 to 42 in e39342d Version = if (($V = $BuildInfo.SemVer.Split... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dan-hughes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 90af392c4422c0519eb9d3bf73d4a19bcd295cce41ce316abc60c8399f996938 |
| turbo-cache-control | no-preview |
| go-import | github.com/PoshCode/ModuleBuilder git https://github.com/PoshCode/ModuleBuilder.git |
| octolytics-dimension-user_id | 5641451 |
| octolytics-dimension-user_login | PoshCode |
| octolytics-dimension-repository_id | 18412121 |
| octolytics-dimension-repository_nwo | PoshCode/ModuleBuilder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18412121 |
| octolytics-dimension-repository_network_root_nwo | PoshCode/ModuleBuilder |
| 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 | 4c08209263bbbf322ab1921dc4539a6bfc158b1f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width