/VERSION (Version Information)
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
The version number you want in the header of the .exe or .dll file.
The /VERSION option tells the linker to put a version number in the header of the .exe or .dll file. Use DUMPBIN /HEADERS to see the image version field of the OPTIONAL HEADER VALUES to see the effect of /VERSION.
The major and minor arguments are decimal numbers in the range 0 through 65,535. The default is version 0.0.
The information specified with /VERSION does not affect the version information that appears for an application when you view its properties in File Explorer. That version information comes from a resource file that is used to build the application. See Version Information Editor for more information.
Another way to insert a version number is with the VERSION module-definition statement.
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the Linker folder.
Click the General property page.
Modify the Version property.
- See Version.