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
Always set repoVersion on project-level settings (microsoft#941)
- `repoVersion` should always be set on project-level settings as
`InrecrementVersionNumber` can be called on a project.
- Disallow lowering the `repoVersion` value.
Copy file name to clipboardexpand all lines: Actions/IncrementVersionNumber/IncrementVersionNumber.ps1
+5-7
Original file line number
Diff line number
Diff line change
@@ -30,20 +30,18 @@ try {
30
30
31
31
$settings=$env:Settings|ConvertFrom-Json
32
32
33
-
# Ensure the repoVersion setting exists in the repository settings. Defaults to 1.0 if it doesn't exist.
34
-
Set-VersionInSettingsFile-settingsFilePath (Join-Path$baseFolder$RepoSettingsFile) -settingName 'repoVersion'-newValue $settings.repoVersion-Force # $RepoSettingsFile is defined in AL-Go-Helper.ps1
{ Set-VersionInSettingsFile-settingsFilePath $settingsFile-settingName $settingName-newValue $newValue } | Should -Throw "The new version number ($newValue) is less than the old version number (2.0). The version number must be incremented."
0 commit comments