question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install/Save-PSResource creates version folder using prerelease name

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Sep 17, 2020

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.

0reactions
alericksoncommented, Aug 4, 2021

This will be resolved with the release of Preview 11.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found