How to add version to build path?

When i pull a new release tag from git and build it, I want to build the new version in another build directory without disturbing previous build. How to add version to the build path in VisualStudio?