Closed ThomasNieto closed 3 years ago
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.98. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
I am seeing the same issue with Install-PSResource cmdlet.
Install-PSResource -Name Microsoft.PowerShell.SecretManagement -Prerelease -Repository PSGallery
dir 'C:\Users\user\OneDrive - Microsoft\Documents\PowerShell\Modules\Microsoft.PowerShell.SecretManagement\'
Directory: C:\Users\user\OneDrive - Microsoft\Documents\PowerShell\Modules\Microsoft.PowerShell.SecretManagement
Mode LastWriteTime Length Name
---- ------------- ------ ----
la--- 9/18/2020 9:39 AM 0.5.2-preview3
@PaulHigin what version of PowerShellGet are you running?
3.0.0-beta10
Since https://github.com/PowerShell/PowerShell/issues/2983 is likely a long way out, this should revert to the old folder conventions now because it currently doesn't work with any powershell version and it's extremely annoying to install a prerelease module only to have to go into the folder and rename it, I had to write a wrapper function to save myself the trouble.
This will be resolved with the release of Preview 11.
Running
Save-PSResource -Name PowerShellGet -Path C:\Temp -Prerelease
will create aC:\Temp\PowerShellGet\3.0.0-beta10
.Import-Module
will throw an error because the folder name and version in the psd1 do not match.