Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Linking
Linker Options
 /VERSION (Version Information)
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual C++ Linker Options
/VERSION (Version Information)

/VERSION:major[.minor]

where:

majorand minor

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 Windows 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.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the General property page.

  4. Modify the Version property.

To set this linker option programmatically

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker