`before_package` ignored when `build_script` is used

qwertiest's Avatar


23 Aug, 2022 09:36 PM

`before_package` is no longer being executed after I've replaced `build` step with `build_script` (as a workaround for https://help.appveyor.com/discussions/problems/32380-vs-build-fails-if-vcxitems-project-is-included).
It does seem to work if I place the relevant script into `after_build` step instead.

`before_package` has the following description `# scripts to run *after* solution is built and *before* automatic packaging occurs`. Perhaps `automatic packaging` refers to the `build` step, but I couldn't find any other documentation that mentions this, so I'm not sure if it's actually a bug or just missing information in documentation.

  1. Support Staff 1 Posted by Feodor Fitsner on 24 Aug, 2022 05:06 AM

    Feodor Fitsner's Avatar

    It's by design, I'm afraid. before_package works only with automatic build. When build_script is used it's assumed all build and packaging commands are provided by the user.

  2. Feodor Fitsner closed this discussion on 24 Oct, 2022 09:02 PM.

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

Keyboard shortcuts


? 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


06 Jun, 2024 02:12 PM
06 Jun, 2024 03:49 AM
04 Jun, 2024 03:53 AM
30 May, 2024 04:03 PM
27 May, 2024 02:06 AM
20 May, 2024 09:52 PM