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
Cannot run a document in PowerShell Core: C:\Users\slee\repos\PowerShell\PowerShell-6.0.0-beta.5-win10-win2016-x64.msi.
At line:1 char:1
+ .\PowerShell-6.0.0-beta.5-win10-win2016-x64.msi
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (C:\Users\slee\r...win2016-x64.msi:String) [], RuntimeException
+ FullyQualifiedErrorId : CantActivateDocumentInPowerShellCore
Environment data
Name Value
---------
PSVersion 6.0.0-beta
PSEdition Core
GitCommitId v6.0.0-beta.5-8-g879b7da4ac327865570d3e696a744d49e8eb7c85-dirty
OS Microsoft Windows 10.0.16257
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
ProcessStartInfo.UseShellExecute is now supported in .NET Core. On windows, it works as expected (opening the default applications associated with the file extension). However, the behavior is not expected on Linux (and probably on Mac too).
Activity
[-]Can start .msi from powershell core[/-][+]Can't start .msi from powershell core[/+]daxian-dbw commentedon Aug 4, 2017
ProcessStartInfo.UseShellExecuteis now supported in .NET Core. On windows, it works as expected (opening the default applications associated with the file extension). However, the behavior is not expected on Linux (and probably on Mac too).Example:
daxian-dbw commentedon Aug 4, 2017
So we actually need to clean up our code about the
ShellExecuteEximplementation ...