Project/Build Versions

gsilvey
01-23-2004, 07:31 AM
This must be simple, but I've searched and can't find how to obtain the Major/Minor/build versions of a project. Is there way to do this in Visual Basic.NET? Are these values automatically generated when you do a build?

Thanks...

Csharp
01-23-2004, 11:28 AM
take a look at the FileVersionInfo class , eg:

Dim versioninfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath)

MessageBox.Show(versioninfo.FileMajorPart & " : " & versioninfo.FileMinorPart)

gsilvey
01-28-2004, 06:37 AM
Thanks, that was it!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum