Can you please try Application.AssemblyVersion?
On Jan 25, 11:01 pm, howa...@nospam.nospam
<howardwnospamnos...@discussions.microsoft.com> wrote:
> Application.ProductVersion also returns 1.0.0.0.
>
>
>
> "Nikhil" wrote:
> > 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.
>
> > On Jan 25, 5:06 am, howa...@nospam.nospam
> > <howardwnospamnos...@discussions.microsoft.com> wrote:
> > > 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?- Hide quoted text -- Show quoted text -
|