Microsoft KB Archive/173650

= PRB: Version Number Not Incrementing Using Command Line /Make =

Article ID: 173650

Article Last Modified on 6/29/2004

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Enterprise Edition

-



This article was previously published under Q173650



SYMPTOMS
When making an executable file using the Visual Basic command-line argument /make or /m, the Revision Version Number is incremented only the first time even though Auto Increment was checked in the Project Properties dialog box before the project was saved.



RESOLUTION
To maintain accurate versioning in your applications, compile the executable file via the Visual Basic Integrated Development Environment (IDE).



STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The Visual Basic /make or /m command-line argument is designed to adhere to the Path, EXEName, and Title properties of the App object. It is not designed to adhere to the versioning information or the Auto Increment property of the project.

Steps to Reproduce Behavior
 Create a new Standard EXE project. Form1 is added by default. On the File menu, click Make Project1.exe. In the Make Project dialog box, click the Options button. In the Project Properties dialog box, change the Major Version Number to 2, the Minor Version Number to 2, the Revision Version Number to 2, and select Auto Increment. Click OK to return to the Make Project dialog box; then click OK to create the executable. Save the project and exit Visual Basic.</li> Using the Microsoft Windows Explorer, locate the Project1.exe file, right-click to select the file, click Properties on the menu, and then click the Version tab in the Properties dialog box to view its current version number. Note that this number is 2.02.0002, and exit.</li>  On the Windows Start menu, click Run, and type in the following command, replacing the values within "<...>" with the actual paths on your system: <PATH TO VB5>\VB5.EXE /make <PATH TO Project1.VBP>\Project1.VBP </li> Locate the Project1.exe file using the Microsoft Windows Explorer, right-click to select the file, click Properties on the menu, and then click the Version tab in the Properties dialog box. Note that the version number is 2.02.0003, as expected.</li>  On the Windows Start menu, click Run again and select the following command, which has the values within "<...>" replaced with the actual paths on your system: <PATH TO VB5>\VB5.EXE /make <PATH TO Project1.VBP>\Project1.VBP </li> Locate the Project1.exe file using the Microsoft Windows Explorer, right-click to select the file, click Properties on the menu, and then click the Version tab in the Properties dialog box. Note that the version number is 2.02.0003 and has not changed. Compiling from the command line will no longer cause the Revision version number to be auto-incremented.</li></ol>

Additional query words: autoincremented

Keywords: kbprb KB173650

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.