Update prompts

This commit is contained in:
vczh
2026-03-30 01:14:27 -07:00
parent fcc90b4557
commit f3607727ea
9 changed files with 19 additions and 13 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ if (($Mode -ne "CLI") -and ($Mode -ne "UnitTest")) {
throw "Invalid mode: $Mode. Allowed values are CLI or UnitTest."
}
if (($Configuration -ne $null) -ne ($Platform -ne $null)) {
if (([string]::IsNullOrEmpty($Configuration)) -ne ([string]::IsNullOrEmpty($Platform))) {
throw "Configuration and Platform parameters should be set or unset at the same time."
}
if ($Configuration -ne $null) {
if (-not [string]::IsNullOrEmpty($Configuration)) {
if (($Configuration -ne "Debug") -and ($Configuration -ne "Release")) {
throw "Invalid configuration: $Configuration. Allowed values are Debug or Release."
}