473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ClickOnce and Version Number

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.Executa blePath);
string version = fvi.FileVersion;

Is there a way to get programatically the information that Visual Studio
publishes?
Jan 25 '07 #1
3 4004
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.comwrot e:
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.Executa blePath);
string version = fvi.FileVersion;

Is there a way to get programatically the information that Visual Studio
publishes?
Jan 25 '07 #2
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.comwrot e:
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.Executa blePath);
string version = fvi.FileVersion;

Is there a way to get programatically the information that Visual Studio
publishes?

Jan 25 '07 #3
Can you please try Application.AssemblyVersion?

On Jan 25, 11:01 pm, howa...@nospam.nospam
<howardwnospamnos...@discussions.microsoft.comwrot e:
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.comwrot e:
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.Executa blePath);
string version = fvi.FileVersion;
Is there a way to get programatically the information that Visual Studio
publishes?- Hide quoted text -- Show quoted text -
Jan 29 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
1
by: Andrew86 | last post by:
I have an application which requires a number of DLLs (unmanaged ansi C dlls) to reside in the same directory as the application. I currently have these dlls included in the project folder and...
2
by: Jamey McElveen | last post by:
Hello, I would like to use ClickOne but we need to stagger our update process. Currently we are shipping cd's when it is time for an update. We stagger the release in waves of 250 each so our...
3
by: firefox | last post by:
Hola amigos yo publico mi aplicacion a través de ClickOnce y todo funciona muy bien, el único problema que tengo es que algunos clientes omiten las publicaciones y para que la aplicacion...
3
by: zombiechewtoy | last post by:
I'm having a problem displaying the version number of the ClickOnce deployment on my programs, but it's under odd conditions... I have a program which is distributed via ClickOnce to around 50...
3
by: Peter Wyss | last post by:
Hello! I've a few questions about ClickOnce in VisualStudio 2005. The installation of my application works fine, I published the files on a webserver and installed the app on a winxp client,...
7
by: Carlos Mendonça | last post by:
Has anyone managed to get ClickOnce to work with Firefox? It seems to me that it still has the same issues VS 2K5 had. I appreciate any comments or tips.
1
by: Joe | last post by:
Hello to all! I have an interessting question here concerning ClickOnce technology. I have a .NET 3.5 Windows application that is deployed on client computer via ClickOnce. The version is...
3
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.