Here’s a useful little tip:
In your AssemblyInfo.cs file, modify your assembly version number to auto increment. First, replace the last zero with an asterisk.
Then later, you can reference the version number with:
You can then reference your version number as part of your other debug info.
The rules for how the increment occurs can be found here: AssemblyVersionAttribute
A more robust and flexible solution can be found here. However, in many cases, all you need is the ability to ensure that two running projects are the same version, in which case the first solution is sufficient.