PC Review


Reply
Thread Tools Rate Thread

ClickOnce and Version Number

 
 
=?Utf-8?B?aG93YXJkd0Bub3NwYW0ubm9zcGFt?=
Guest
Posts: n/a
 
      25th Jan 2007
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?
 
Reply With Quote
 
 
 
 
Nikhil
Guest
Posts: n/a
 
      25th Jan 2007
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?


 
Reply With Quote
 
=?Utf-8?B?aG93YXJkd0Bub3NwYW0ubm9zcGFt?=
Guest
Posts: n/a
 
      25th Jan 2007
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?

>
>

 
Reply With Quote
 
Nikhil
Guest
Posts: n/a
 
      29th Jan 2007
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 -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
For ClickOnce, all solutions on same VS version? Dean Slindee Microsoft VB .NET 1 24th Jan 2008 07:12 AM
upgrade .NET version with ClickOnce? =?Utf-8?B?QmVu?= Microsoft Dot NET Framework 2 18th Apr 2007 06:30 AM
Force install of new version within ClickOnce =?Utf-8?B?RGljaw==?= Microsoft Dot NET Framework 2 14th Nov 2006 03:00 AM
ClickOnce - why is an old version of my app installed?? ionpopescu Microsoft C# .NET 0 30th May 2006 11:15 AM
ClickOnce: Change File without new Version Zemp Aline Microsoft Dot NET Framework 1 28th Jan 2006 10:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.