File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,6 +208,30 @@ function Test-IsPreview
208208 return $Version -like ' *-*'
209209}
210210
211+ <#
212+ . Synopsis
213+ Tests if a version is a Release Candidate
214+ . EXAMPLE
215+ Test-IsReleaseCandidate -version '6.1.0-sometthing' # returns false
216+ Test-IsReleaseCandidate -version '6.1.0-rc.1' # returns true
217+ Test-IsReleaseCandidate -version '6.1.0' # returns false
218+ #>
219+ function Test-IsReleaseCandidate
220+ {
221+ param (
222+ [parameter (Mandatory )]
223+ [string ]
224+ $Version
225+ )
226+
227+ if ($Version -like ' *-rc.*' )
228+ {
229+ return $true
230+ }
231+
232+ return $false
233+ }
234+
211235function Start-PSBuild {
212236 [CmdletBinding (DefaultParameterSetName = " Default" )]
213237 param (
@@ -515,6 +539,7 @@ Fix steps:
515539 # ARM is cross compiled, so we can't run pwsh to enumerate Experimental Features
516540 if (-not $SkipExperimentalFeatureGeneration -and
517541 (Test-IsPreview $psVersion ) -and
542+ -not (Test-IsReleaseCandidate $psVersion ) -and
518543 -not $Runtime.Contains (" arm" ) -and
519544 -not ($Runtime -like ' fxdependent*' )) {
520545
You can’t perform that action at this time.
0 commit comments