File version vs Product Version - simple question - best practice

  • Thread starter Thread starter Keith
  • Start date Start date
K

Keith

I am using the FileVersionInfo class and want to know which is most commonly
accepted: the File version or the Product version?

When I use the UI to look at \\myServer\Program Files\Common
Files\System\ado\msado15.dll

I get 2.70.9001.0 for both the File and Product versions.

When I look at some Custom and Third Party COM I get mixed results:
1.01.0001 for Product, 1.1.0.1 for File version.

Question: What is the most commonly tracked version to use? It would appear
that File would win since MS shows that first thru the UI. You have to
click around to find Product version. But when I use the .NET class to
request File Version - my code:
Return myFileVersionInfo.FileVersion.ToString

I am actually getting Product Version.

Please advise.

Keith
 
PS this code gives me an accurate File Version, but my question stands -
Which version (File or Product) is more commonly accepted? I bet File since
that is what MS shows first in the UI.

Return myFileVersionInfo.FileMajorPart.ToString & "." & _

myFileVersionInfo.FileMinorPart.ToString & "." & _

myFileVersionInfo.FileBuildPart.ToString & "." & _

myFileVersionInfo.FilePrivatePart.ToString
 
Back
Top