ClickOnce and Version Number

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?
 
N

Nikhil

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top