Open
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
Steps to reproduce
- Create a
test.psd1
file as follows
@{
'PrereleaseTest' = @{
'repository' = 'PSGallery'
prerelease = $True
'Scope' = 'CurrentUser'
}
}
- run
Install-PSResource -RequiredResourceFile test.psd1
Consider that the current prerelease version of PrereleaseTest
is 0.0.2-prerelease
according to PSGallery.
Expected behavior
import-module prereleasetest; get-module prereleasetest
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 0.0.2 prerelease prereleasetest
Actual behavior
import-module prereleasetest; get-module prereleasetest
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 0.0.1 prereleasetest
Error details
When importing from a json file, though, the prerelease setting is correctly respected.
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 1.1.0 Microsoft.PowerShell.PSResourceGet {Compress-PSResource, Find-PSResource, Get-Instal…
Name Value
---- -----
PSVersion 7.6.0-preview.2
PSEdition Core
GitCommitId 7.6.0-preview.2
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0