Directives

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.