Skip to content

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

@krzydoug

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions