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
I'm trying to create a script that runs the AL validation against multiple BC versions.
Currently we validate against Current (23.5) and our Dependency (23.0) using the following script
When I add the ValidateNextMajor and ValidateNextMinor parameters, the validation only validates against NextMajor and NextMinor (both currently 24.0). I can also validate against current by adding the ValidateCurrent flag, and that works. However, I'm unable to validate against NextMajor, NextMinor, Current, and our dependency (23.0, 23.5, and 24.0) simultaneously.
I've looked at the available parameters of the Run-AlValidation command, but I can't find a way to add our dependency other than by using the ValidateVersion parameter. This doesn't seem like a solid solution to me, since the dependency is also in our app.json. I could extract the dependency from the app.json file prior to validation, but that seems like extra work for something that I think should already work.
Is there a better way to validate against multiple BC versions? Any guidance would be appreciated.
The text was updated successfully, but these errors were encountered:
If you run Run-AlValidation with no -validate parameters - then it will validate against the dependency AND the current version.
This is similar to what online validation does.
But... - currently you cannot validate against dependency, current, nextmajor AND nextminor in one go.
So... - call Run-AlValidation once with no parameters and once with -validateNextMajor and -validateNextMinor.
Performance wise - there isn't a big difference in doing it like this - less than a second I guess.
I'm trying to create a script that runs the AL validation against multiple BC versions.
Currently we validate against Current (23.5) and our Dependency (23.0) using the following script
When I add the
ValidateNextMajor
andValidateNextMinor
parameters, the validation only validates against NextMajor and NextMinor (both currently 24.0). I can also validate against current by adding theValidateCurrent
flag, and that works. However, I'm unable to validate against NextMajor, NextMinor, Current, and our dependency (23.0, 23.5, and 24.0) simultaneously.I've looked at the available parameters of the
Run-AlValidation
command, but I can't find a way to add our dependency other than by using theValidateVersion
parameter. This doesn't seem like a solid solution to me, since the dependency is also in ourapp.json
. I could extract the dependency from theapp.json
file prior to validation, but that seems like extra work for something that I think should already work.Is there a better way to validate against multiple BC versions? Any guidance would be appreciated.
The text was updated successfully, but these errors were encountered: