Skip to content

No commands are exported in powershell core #13

Description

@AntPAllen

When importing this module in PowerShell core (have tried 6.2 and 7.0-preview.3) I get the error:

Import-Module : Assembly with same name is already loaded
At C:\Users\psadm\Documents\PowerShell\Modules\PSStringTemplate\0.2.0\PSStringTemplate.psm1:4 char:5

  • Import-Module $PSScriptRoot/bin/Core/PSStringTemplate.dll
    

It seems it is this PR which has caused the issue as dlls in FileList in the module manifest are getting loaded before the psm1 is run. There is also a similar issue in the PowerShell repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions