APPVEYOR_BUILD_VERSION on release branches contains alpha characters

mikeb's Avatar

mikeb

20 Feb, 2025 02:53 PM

Is it possible to prevent APPVEYOR_BUILD_VERSION from containing alpha characters on non-master branch builds?

For example, my version numbers appear as 2.6.7-mkygtkrh when building PR's and this breaks the windows based ISS installer that can only accept regular numeric version numbers. I don't see other environment variables or settings for this, maybe I'm missing it somewhere.

I could probably do some replacement of some kind, but it would be nice to have standard version numbers in these cases too. Is this a fallback and I'm missing an option?

  1. Support Staff 1 Posted by Feodor Fitsner on 20 Feb, 2025 03:32 PM

    Feodor Fitsner's Avatar

    You probably have "Pull Requests do not increment build number" option enabled on General tab of project settings (see screenshot).

  2. 2 Posted by mikeb on 20 Feb, 2025 04:51 PM

    mikeb's Avatar

    indeed - that'll do it! Thanks :)

  3. mikeb closed this discussion on 20 Feb, 2025 04:52 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac