Skip to content

Start-PSBuild -Runtime always defaults to x64 on Linux #17801

@dkaszews

Description

@dkaszews

Prerequisites

Steps to reproduce

Run Start-PSBuild without -Runtime on Linux ARM, e.g. Raspberry Pi. It will successfully build, but throw a cryptic error when you try to run pwsh. This also breaks Start-DevPowerShell, as it tries always tries to run x64, even on ARM.

Expected behavior

Runs `dotnet publish --runtime linux-arm64`

Actual behavior

Runs `dotnet publish --runtime linux-x64`

Error details

No response

Environment data

Name                           Value                                                                                                                                                                            
----                           -----                                                                                                                                                                            
PSVersion                      7.2.4                                                                                                                                                                            
PSEdition                      Core                                                                                                                                                                             
GitCommitId                    7.2.4                                                                                                                                                                            
OS                             Linux 5.15.0-1011-raspi #13-Ubuntu SMP PREEMPT Thu Jun 2 11:44:34 UTC 2022                                                                                                       
Platform                       Unix                                                                                                                                                                             
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}                                                                                                                                                            
PSRemotingProtocolVersion      2.3                                                                                                                                                                    
SerializationVersion           1.1.0.1                                                                                                                                                                          
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions