0

We started using VSS integrated with vb6 at our company, one problem we have is that the visual basic project file's make-version-number doesn't get updated after making an exe.

Other form/code files do update though. What could be the reason & workaround for the .vbp file not updating?

Thanks

dimitarie
  • 307
  • 2
  • 6
  • 19
  • What's "make-version-number"? Do you check-out the .vbp file before compiling? – wqw Sep 06 '12 at 11:45
  • In the .vbp properties there is a version number in the Make tab. – dimitarie Sep 06 '12 at 12:03
  • The version number has Major/Minor/Revision numbers. I've set it to automatically auto increment, but it doesn't get changed on the server when checking in. – dimitarie Sep 06 '12 at 12:05
  • 1
    If the .vbp is not read-only it does get incremented when compiled from command line with `vb6.exe /make my.vbp /out my.log`. How do you compile your projects? – wqw Sep 06 '12 at 15:26
  • Have you manually saved the project AFTER compiling? It needs to be saved before the updated build number is written to disk. – Deanna Sep 07 '12 at 09:51
  • I set vb6 so it saves before compiling (ie it always asks and I say yes to save). I compile from within the IDE. – dimitarie Sep 07 '12 at 12:36
  • @dimitarie: The option is to save before run. You need to save the project manually (or exit and save) for the updated build number to be written to the project file. – Deanna Sep 18 '12 at 14:04

2 Answers2

0

Make sure the project is in the VSS and is checked out before you save it.

Make sure you are checking in the right VBP file.

When you compile, before checking in, does the revision number change in the Project Properties?


EDIT 1 (October 29, 2012):


Please follow the steps below and tell me the result: - Check out the project (including VBP file, make sure you get the latest version from SourceSafe)

  • Open VBP, the Auto Increment option is checked and Version Number section has valid numbers (Major/Minor/Revision)

  • Work on the project, compile EXE, check if Version Number section has new Revision number

  • Check in all files (including VBP) into SourceSafe

  • Close project

  • Get latest VBP file from the SourceSafe, open it, check version number numbers


George
  • 2,165
  • 2
  • 22
  • 34
0

If you have the option to "auto increment build number" enabled, then you will need to make sure the project is saved AFTER compiling before checking it in to source control.

You can do one of:

  1. Manually save the project after compiling.
  2. Exit the IDE and choosing to save the project afterwards.
  3. Right click the VBP and compile from the context menu. This will compile and save the project automatically.

The project file also needs to be writable (i.e. not readonly or checked in) for these to save correctly.

Deanna
  • 23,876
  • 7
  • 71
  • 156