Create two
Make VC6 or
Make VS.NET steps for the project/solution, the first one with
Don't build checked and setting the product version, and the second (with
Don't build unchecked) setting the file version.
These steps can also be placed in a project or global subroutine and called for each project/solution that is being built, passing in the filename and version values in temporary macros.