Skip to content

Running 'pwsh.exe' from the parent folder of 'publish' after 'Start-PSBuild -Clean' fails #5783

@daxian-dbw

Description

@daxian-dbw

Steps to reproduce

> Start-PSBuild -Clean
> Get-PSOptions
E:\PowerShell\src\powershell-win-core\bin\Debug\netcoreapp2.0\win7-x64\publish\pwsh.exe
## Run the 'pwsh.exe' from the parent folder of 'publish'
> E:\PowerShell\src\powershell-win-core\bin\Debug\netcoreapp2.0\win7-x64\pwsh.exe

Expected behavior

Should work. I remember it used to work.

Actual behavior

PowerShell v6.0.0-rc.2-76-gb057d4545d24eb152558fbc42c9c0bc65fc13273
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

The shell cannot be started. A failure occurred during initialization:
The static PrimaryRunspace property can only be set once, and has already been set.
<process-hang>

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-rc.2
PSEdition                      Core
GitCommitId                    v6.0.0-rc.2-76-gb057d4545d24eb152558fbc42c9c0bc65fc13273
OS                             Microsoft Windows 10.0.15063
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions