17.1 Increment the version number each time you compile a program.

When you compile a project into a distributable component, a version number is included in the compiled file. This version number can be used by installation programs to ensure that files aren’t overwritten with older versions. In addition, you can view the version number of a file by using Windows Explorer—see Figure 17-3—which makes troubleshooting faulty installations quite a bit easier.

The version number of a compiled program isn’t arbitrary. The number is defined in the AssemblyInfo.vb file in a Visual Basic .NET project, as described earlier.

Figure 17-3. Right-clicking a file in Windows Explorer allows you to view the file’s properties, which include the ...

Get Practical Standards for Microsoft® Visual Basic® .NET, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.