J
Jim
Hi. I would like to validate the version string that I
get from FileVersionInfo. Is there a way via the object
model to do this?
I am currently doing this:
FileVersionInfo fileVersionInfo =
FileVersionInfo.GetVersionInfo(filePath);
string fileVersion = fileVersionInfo.FileVersion;
Sometimes though, I get versions that look like "5.2.02.2
WestNileBuild" or others that look like "5,2,3,0"
Is there a way to format whatever result I get, to look
like one of the following formats:
1
1.1
1.1.1
1.1.1.1
Thanks
Jim
get from FileVersionInfo. Is there a way via the object
model to do this?
I am currently doing this:
FileVersionInfo fileVersionInfo =
FileVersionInfo.GetVersionInfo(filePath);
string fileVersion = fileVersionInfo.FileVersion;
Sometimes though, I get versions that look like "5.2.02.2
WestNileBuild" or others that look like "5,2,3,0"
Is there a way to format whatever result I get, to look
like one of the following formats:
1
1.1
1.1.1
1.1.1.1
Thanks
Jim