-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
Resolution-By DesignThe reported behavior is by design.The reported behavior is by design.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Description
It appears that trying to run jobs inside hosted PowerShell Core from a .NET Core 2.0 app fails.
This was first noticed in Jaykul/Jupyter-PowerShell#20 But I was able to coble together a simple repro https://github.com/markekraus/TesthostedPSJobs
@Jaykul suggested I try and copy the pwsh binary to the hosted app location, but that doesn't seem to work either.
Steps to reproduce
git clone https://github.com/markekraus/TesthostedPSJobs.git
push-location TesthostedPSJobs
dotnet runExpected behavior
No output
Actual behavior
Error: [localhost] An error occurred while starting the background process. Error reported: The system cannot find the file specified.
Exception: System.Management.Automation.Remoting.PSRemotingTransportException: An error occurred while starting the background process. Error reported: The system cannot find the file specified. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Management.Automation.Runspaces.PowerShellProcessInstance.Start()
at System.Management.Automation.Remoting.Client.OutOfProcessClientSessionTransportManager.CreateAsync()
--- End of inner exception stack trace ---
InnerException: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Management.Automation.Runspaces.PowerShellProcessInstance.Start()
at System.Management.Automation.Remoting.Client.OutOfProcessClientSessionTransportManager.CreateAsync()
InnerException:
--------------------------------------------------------
Environment data
Windows 10 x64 (I have not verified this on other OSes)
6.0.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Resolution-By DesignThe reported behavior is by design.The reported behavior is by design.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime