Would anyone please enlighten me now to use pre- and post-build events with VisualGDB and VC2022?
I’ve read that they can be used by editing the .vcxproj file. So I’ve used an other C project to find out how “Build Events” are encoded and merged the changes without success. I’ve also tried the same for “Custom Build Step” again without success.
I’d like to call a script before build to add version information to the source code and a script after linking to convert the output into a custom format.
VisualGDB has its own easy and intuitive mechanism for custom steps. You can use the “Custom build steps” page of VisualGDB Project Properties to define a variety of different steps using convenient GUI.
Note that this feature is available starting from the Custom edition.