You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
When I try to use Run-AlValidation with combination of -validateCurrent, -validateNextMinor and -validateNextMajor parameters, I get an error
Run-AlValidation : Cannot process argument transformation on parameter 'credential'. userName
Scripts used to create container and cause the issue
PS C:\Development> .\validate.ps1 -validationRequiredFor ("dk") -validationRequiredWith "NextMajor" -appFileName "c:\Development\app_1.0.0.1.app" -oldAppFileName "c:\Development\app_1.0.0.0.app"
BcContainerHelper version 6.0.18
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.20348.2400
WARNING: The names of some imported commands from the module 'BCContainerHelper' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-
Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
Run-AlValidation : Cannot process argument transformation on parameter 'credential'. userName
At C:\Development\validate.ps1:34 char:28
+ -validateNextMajor $ValidateMajor `
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Run-AlValidation], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Run-AlValidation
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
does it happen all the time? yes, tried using non-variables or different order - all the same
did it use to work? do not know, started checking today
The text was updated successfully, but these errors were encountered:
ValidateCurrent, ValidateNextMinor, ValidateNextMajor and failOnError are switch parameters (not boolean)
According to PowerShell syntax, you need to add a colon (and remove the true):
Describe the issue
When I try to use Run-AlValidation with combination of -validateCurrent, -validateNextMinor and -validateNextMajor parameters, I get an error
Scripts used to create container and cause the issue
Full output of scripts
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The text was updated successfully, but these errors were encountered: