Skip to content

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

Closed

Description

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

Activity

  1. SteveL-MSFT commented on Jan 4, 2018

    @SteveL-MSFT
    Member

    Based on the error, may be related to #5356

  2. iSazonov commented on Apr 3, 2018

    @iSazonov
    Collaborator

    Add-Type doesn't work from parent folder too.

  3. daxian-dbw commented on Apr 3, 2018

    @daxian-dbw
    MemberAuthor

    Ilya (@iSazonov) Yes I guess so, at least because the ref folder is not there. Add-Type should fail gracefully when ref folder cannot be found. Please open a separate issue for this one.

  4. iSazonov commented on Apr 4, 2018

    @iSazonov
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-WindowsResolution-FixedWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions