Skip to content

invoke-item doesn't work on windows (Cannot open sln file from powershell) #1506

Closed

Description

@vors

Steps to reproduce

From powershell build on windows, try to open .\powershell.sln (from the root of the repo)

> .\powershell.sln
>  invoke-item .\powershell.sln

Expected behavior

Opening sln file will launch Visual Studio, like inbox powershell does.

Actual behavior

PS F:\dev\PowerShell> .\powershell.sln
Cannot run a document in PowerShell Core: F:\dev\PowerShell\powershell.sln.
At line:1 char:1
+ .\powershell.sln
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (F:\dev\PowerShell\powershell.sln:String) [], RuntimeException
    + FullyQualifiedErrorId : CantActivateDocumentInPowerShellCore

PS F:\dev\PowerShell> invoke-item .\powershell.sln
invoke-item : Operation is not supported on this platform.
At line:1 char:1
+ invoke-item .\powershell.sln
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-Item], PlatformNotSupportedException
    + FullyQualifiedErrorId : System.PlatformNotSupportedException,Microsoft.PowerShell.Commands.InvokeItemCommand

Environment data

> $PSVersionTable

Name                           Value
----                           -----
BuildVersion                   3.0.0.0
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSEdition                      PowerShellCore
PSVersion                      5.1.10032.0
PSRemotingProtocolVersion      2.3
GitCommitId                    v0.6.0-371-ge79a183994cca92319db8ab5d5188b48717a68d7-dirty
CLRVersion
WSManStackVersion              3.0
SerializationVersion           1.1.0.1

Activity

  1. added this to the milestone on Jul 25, 2016
  2. vors commented on Jul 25, 2016

    @vors
    CollaboratorAuthor

    It's dup of #1325 we should prioritize it

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions