Skip to content

PSScriptRoot is always a temp directory when using ps core packaged script #142

Description

@krzydoug

When packaging a script with Merge-Script and targeting powershell core, the $psscriptroot variable points to a temp location and not where the exe is ran from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions