Git integration in Visual Studio, are there any macros available?

I would like to split up my output directory per Git branch.

Currently, my output directory is defined as follows:

Output directory

The variables (VSBuildPath and Configuration) are defined within Visual Studio and contain the general “Visual Studio Build Path” and the “Configuration” (64-bit, 32-bit, …).

I have Git integrated inside my VS environment, as you can see at this “Git Changes” window next to the solution explorer:

Git Changes tab

As a result, I was expecting to see Git-related information in the list of available macros (like “Git branch” or maybe “Git commit”), but don’t:

List of available macros

Is it possible to have Git-related information in the list of available macros or any other kind of variable I can use to split my output directory over different Git branches?

Read more here: Source link