For WixToolset projects - just environment variables is enough. Or version.wxi with
<?xml version="1.0" encoding="utf-8"?>
<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define ProductVersion="02.04.3369.0007"?>
...
</Include>
Or version.wxs with
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include version.wxi ?>
<WixVariable Id="ProductVersion" Value="$(var.ProductVersion)"/>
...
</Wix>
For .vcxproj - version.h for с++ compiler and resource compiler is enough. Minimum - project variables for using in /D directive for c++ compiler and resource compiler...