Setting version info from the MSBuild commandline
When you set the version information for a binary when building the a project from the command line using MSBuild, the version information resource will only be bound during a BUILD and not a MAKE.
To change the version information during a MAKE you need to add an extra parameter on the MSBuild command line:
/property:__ShouldBuildVersion=true
For instance:
msbuild MyTestApp.dproj /property:VerInfo_Keys="FileVersion=1.0.4.2;ProductVersion=1.0.4.2;LegalCopyright=Copyright 1993-2026 MyCompany;CompanyName=MyCompany;ProductName=MyTestApp" /property:__ShouldBuildVersion=true /p:Config=RELEASE;Platform=Win64 /t:Make