Skip to content

Install/Save-PSResource creates version folder using prerelease name #261

@ThomasNieto

Description

@ThomasNieto

Running Save-PSResource -Name PowerShellGet -Path C:\Temp -Prerelease will create a C:\Temp\PowerShellGet\3.0.0-beta10. Import-Module will throw an error because the folder name and version in the psd1 do not match.

Import-Module C:\Temp\PowerShellGet
Import-Module: The specified module '.\PowerShellGet\' was not loaded because no valid module file was found in any module directory.

# Fixed by renaming the folder to remove -beta10
cd c:\temp\PowerShellGet
Rename-Item .\3.0.0-beta10\ .\3.0.0
cd c:\temp
Import-Module .\PowerShellGet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions