08-01-2003 09:25 AM
08-06-2008 09:18 AM
11-13-2023 01:27 AM
I have encountered the same concern: VI history:revision is available only in the development environment.
Use-case: decorate a UI with a unique version number. An integer value that increases with VI change suffices. I see the value for complex multi-tabbed interfaces too. Starting simple for a suite of apps in development that are regularly deployed for end-user test/review/feedback.
Propose to decorate the application INI file at build time. Example: given an application named Collector.exe, Collector.ini will be modified to include a property "history.revision.ui.collector=777", the source VI will be modified to read the run-time property specific to it.
One colleague proposes taking all the vi paths and revisions and stuffing them in a JSON blob well-known to, and searchable by to the run-time system and distributed components.
Looking for pointers, examples along the lines of decorating / modifying the INI file at build time. E.g. when does the default build process create the application INI? Where does it get staged while an EXE build is created? Is it better to decorate before the default process (pre) or after (post)?
Not presently familiar with that infrastructure other than that it exists.
11-13-2023 05:01 AM
1) Keep your code in source code control.
2) Keep release nodes in a txt file (in SCC), in version sections. (Optionally) use issue numbers from an issue tracker.
3) When you build, increase the version manually.
4) When you build, commit and tag the source code
5) Get the version from the exe.
Now you have full traceability between code, features and versions...
Of course you could replace 5) with "read from the release nodes file"... I'd go to the source: the exe (PI 😋). The release nodes are editable, even accidentally the exe isn't (easily). Also, during testing you might want to replace the exe with older or newer versions. You'd get proper versioning even if you forget to copy the release notes.
11-13-2023 10:51 AM
11-13-2023 11:33 AM - edited 11-13-2023 11:34 AM
Here is what I started doing with my last project. I use the Conditional Diagram Disable Structure so I can get the build specification version build number in the IDE or the executable's version when in an executable.
12-03-2024 12:20 AM
This one does the trick for me.
Martin
12-03-2024 06:24 AM
@MartinP wrote:
This one does the trick for me.
Martin
Close that reference though...