I have only been playing around with the vNext build system for a little while but, I have stumbled upon some real awesomeness! I now have a build template that allows me to create a new build definition, set a couple of variables, build and then my version numbers will automatically get updated AND I can connect those version numbers directly to the build number because they are using shared data.
In the screen shot below you can see that we have a single build that creates two .EXEs, they each have the same version number and that version number appears in the build number to makes it drop dead easy to determine when the EXE/DLL that I am testing was built:
This also makes it much easier to set the Found in Build and Integrated in Build fields on a bug. All I have to do is get the version number from the appropriate file's properties and enter that in the Found in Build or Integrated in Build field on the bug, (hopefully the version number also appears in an "About" dialog or page). I can use that information to find the offending build.
Ok, so how did I do this? Here are the simple steps:
And that's it. You now have a build template that will set your version numbers and you build numbers consistently and keep them in sync. Try this for yourself and you will see just how quickly and easily you can manage version numbers as part of your vNext builds.