mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add SkipRoslynAnalyzers parameter to Start-PSBuild (#15640)
This commit is contained in:
+6
-1
@@ -307,7 +307,8 @@ function Start-PSBuild {
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]$ReleaseTag,
|
||||
[switch]$Detailed,
|
||||
[switch]$InteractiveAuth
|
||||
[switch]$InteractiveAuth,
|
||||
[switch]$SkipRoslynAnalyzers
|
||||
)
|
||||
|
||||
if ($ReleaseTag -and $ReleaseTag -notmatch "^v\d+\.\d+\.\d+(-(preview|rc)(\.\d{1,2})?)?$") {
|
||||
@@ -453,6 +454,10 @@ Fix steps:
|
||||
$Arguments += "/property:ReleaseTag=$ReleaseTagToUse"
|
||||
}
|
||||
|
||||
if ($SkipRoslynAnalyzers) {
|
||||
$Arguments += "/property:RunAnalyzersDuringBuild=false"
|
||||
}
|
||||
|
||||
# handle Restore
|
||||
Restore-PSPackage -Options $Options -Force:$Restore -InteractiveAuth:$InteractiveAuth
|
||||
|
||||
|
||||
Reference in New Issue
Block a user