Install/Save-PSResource creates version folder using prerelease name
See original GitHub issueRunning 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
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Pre-release version of a package not found even with ...
I'm unable to install pre-release versions with the --allow-prerelease flag using either Poetry 1.1.4 or 1.1.5 . Even did a fresh reinstall of ......
Read more >Prerelease versions of scripts - PowerShell
The PowerShellGet module provides support for tagging scripts with versions greater than 1.0.0 as a prerelease using semantic versioning.
Read more >Pre-release versions in NuGet packages
In this article. Installing and updating pre-release packages; Semantic versioning. Whenever you release an updated package with a new ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.98. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
This will be resolved with the release of Preview 11.