You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running 'pwsh.exe' from the parent folder of 'publish' after 'Start-PSBuild -Clean' fails #5783
>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
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.
Activity
SteveL-MSFT commentedon Jan 4, 2018
Based on the error, may be related to #5356
iSazonov commentedon Apr 3, 2018
Add-Type doesn't work from parent folder too.
daxian-dbw commentedon Apr 3, 2018
Ilya (@iSazonov) Yes I guess so, at least because the
reffolder is not there.Add-Typeshould fail gracefully whenreffolder cannot be found. Please open a separate issue for this one.iSazonov commentedon Apr 4, 2018
Dongbo Wang (@daxian-dbw) Done #6555