Skip to content

#Requires -Edition (Desktop | Core) #5908

@dronkoff

Description

@dronkoff

Dear team,
please consider adding #Requires -Edition (Desktop | Core) statement for scripts that are not compatible with Core and still requires Desktop version to run.

It would be great to write

#Requires -Edition Desktop

instead of

if($PSVersionTable.PSEdition -eq 'Core')
{
    throw "Doesn't work with PowerShell Core. Please use Windows PowerShell."
}    

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions