ClickOnce and Version Number

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I publish an application with ClickOnce, I specify Major, Minor, Build,
and Revision numbers for the Publish Version, for example as 1, 0, 0, 97. But
when I view the version of the exe file in explorer, or get it
programatically, it comes back as 1.0. 0.0.

The code I use is

FileVersionInfo fvi =
FileVersionInfo.GetVersionInfo(Application.ExecutablePath);
string version = fvi.FileVersion;

Is there a way to get programatically the information that Visual Studio
publishes?
 
I am not sure but there are two versions, 1 is application version and
second is fileversion. Make sure you are getting the correct version.
 
Application.ProductVersion also returns 1.0.0.0.

Nikhil said:
I am not sure but there are two versions, 1 is application version and
second is fileversion. Make sure you are getting the correct version.
 
Back
Top