Title: Start-PSBootstrap fails on PowerShell 5.1 · Issue #16330 · PowerShell/PowerShell · GitHub
Open Graph Title: Start-PSBootstrap fails on PowerShell 5.1 · Issue #16330 · PowerShell/PowerShell
X Title: Start-PSBootstrap fails on PowerShell 5.1 · Issue #16330 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/16330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Start-PSBootstrap fails on PowerShell 5.1","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\n*Start-PSBootstrap* fails on PowerShell 5.1 due to use of unsupported type `[System.Management.Automation.SemanticVersion]` in *build.psm1* therefore it is not possible to build latest versions of PowerShell 7 on PowerShell 5.1 anymore.\n\n### Expected behavior\n\n```console\n*Start-PSBootstrap* should work on PowerShell 5.1\n```\n\n\n### Actual behavior\n\n```console\n*Start-PSBootstrap* throws error on PowerShell 5.1\n```\n\n\n### Error details\n\n```console\nImport-Module .\\build.psm1\r\nStart-PSBootstrap\r\nInstalling PowerShell build dependencies\r\nVERBOSE: Calling Find-Dotnet from Start-PSBootstrap\r\nVERBOSE: In Find-DotNet\r\nForEach-Object : Unable to find type [System.Management.Automation.SemanticVersion].\r\nAt D:\\DEVELOPMENT\\PowerShellCore\\build.psm1:2106 char:81\r\n+ ... *\\.\\d*)?' | ForEach-Object { [System.Management.Automation.SemanticVe ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : InvalidOperation: (System.Manageme...SemanticVersion:TypeName) [ForEach-Object], RuntimeException\r\n + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.ForEachObjectCommand\r\n\r\n$error[0]|fl * -force\r\n\r\n\r\nPSMessageDetails :\r\nException : System.Management.Automation.RuntimeException: Unable to find type [System.Management.Automation.SemanticVersion].\r\n at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)\r\n at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)\r\n at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1\r\n variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)\r\n at System.Management.Automation.ScriptBlock.\u003c\u003ec__DisplayClass57_0.\u003cInvokeWithPipe\u003eb__0()\r\n at System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThreadCheck(Action action)\r\n at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis,\r\n Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)\r\n at System.Management.Automation.ScriptBlock.InvokeUsingCmdlet(Cmdlet contextCmdlet, Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object\r\n input, Object scriptThis, Object[] args)\r\n at Microsoft.PowerShell.Commands.ForEachObjectCommand.ProcessRecord()\r\n at System.Management.Automation.CommandProcessor.ProcessRecord()\r\nTargetObject : System.Management.Automation.SemanticVersion\r\nCategoryInfo : InvalidOperation: (System.Manageme...SemanticVersion:TypeName) [], RuntimeException\r\nFullyQualifiedErrorId : TypeNotFound\r\nErrorDetails :\r\nInvocationInfo : System.Management.Automation.InvocationInfo\r\nScriptStackTrace : at \u003cScriptBlock\u003e, D:\\DEVELOPMENT\\PowerShellCore\\build.psm1: line 2106\r\n at \u003cScriptBlock\u003e, D:\\DEVELOPMENT\\PowerShellCore\\build.psm1: line 2106\r\n at script:Start-NativeExecution, D:\\DEVELOPMENT\\PowerShellCore\\tools\\buildCommon\\startNativeExecution.ps1: line 22\r\n at Get-LatestInstalledSDK, D:\\DEVELOPMENT\\PowerShellCore\\build.psm1: line 2105\r\n at Find-Dotnet, D:\\DEVELOPMENT\\PowerShellCore\\build.psm1: line 2259\r\n at Start-PSBootstrap, D:\\DEVELOPMENT\\PowerShellCore\\build.psm1: line 2054\r\n at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\nPipelineIterationInfo : {}\n```\n\n\n### Environment data\n\n```powershell\nName Value\r\n---- -----\r\nPSVersion 5.1.19041.1237\r\nPSEdition Desktop\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion 10.0.19041.1237\r\nCLRVersion 4.0.30319.42000\r\nWSManStackVersion 3.0\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\n```\n\n\n### Visuals\n\n\r\n","author":{"url":"https://github.com/kborowinski","@type":"Person","name":"kborowinski"},"datePublished":"2021-10-29T07:07:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/16330/PowerShell/issues/16330"}
| 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:e5463aac-5952-1bf1-64a1-6f51ab584bbf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91C6:26F5D4:127F0CE:1AF2C49:6A5617D9 |
| html-safe-nonce | c398c8e987a70c08b425082f2f7a9ffc9b6c1a723650b681a2b21df90e5ca191 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUM2OjI2RjVENDoxMjdGMENFOjFBRjJDNDk6NkE1NjE3RDkiLCJ2aXNpdG9yX2lkIjoiNTYzNDY1MjI3MjY4NjY2NzczNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 37da3c9bf834309159ab869a1b7ade3f9192673fad9366e450b49d1f778ceb4f |
| hovercard-subject-tag | issue:1039237994 |
| 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/16330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cdbbc2b3b4902587642c556ee6df625b744a7a918ec3e3743038edb5c5aa34b3/PowerShell/PowerShell/issues/16330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cdbbc2b3b4902587642c556ee6df625b744a7a918ec3e3743038edb5c5aa34b3/PowerShell/PowerShell/issues/16330 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kborowinski |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| 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 | b76b9cc70d30da50674184c9c66c56423fd0b93c |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width