You can do this in diagrams. Open your schema (change), expand the assembly in your schema, click "Preliminary Actions", click the "+" button, select "Create Launch" Script Action and write some Script that gets SHA and changes some header file where you can put SHA (the easiest way is #define GIT_SHA @"..." ) and use GIT_SHA in your application in the place where you can display it.
robertvojta
source share