473,406 Members | 2,345 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,406 software developers and data experts.

Publish Version Info in a label

Simple question... Using Visual Studio 2005 to create a small app.
Under my project properties, publish tab, I have it auto incrementing
the revision number every time I publish. Is there any way to put a
label on my main form that displays the current revision? I'd just
like a little label that literally says "1.0.0.7" so it's easy to see
what version of the software my end user is using. Any thoughts? Let
me know. Thanks!
Dec 6 '07 #1
1 8802
igendreau wrote:
Simple question... Using Visual Studio 2005 to create a small app.
Under my project properties, publish tab, I have it auto incrementing
the revision number every time I publish. Is there any way to put a
label on my main form that displays the current revision? I'd just
like a little label that literally says "1.0.0.7" so it's easy to see
what version of the software my end user is using. Any thoughts? Let
me know. Thanks!
(Watch for wrapping!)

If System.Deployment.Application _
..ApplicationDeployment.IsNetworkDeployed Then
Label1.Text = System.Deployment.Application _
..ApplicationDeployment.CurrentDeployment.CurrentV ersion.ToString
Else
Label1.Text = My.Application.Info.Version.ToString
End If

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Dec 6 '07 #2

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

Similar topics

2
by: kelly.pearson | last post by:
I had some access 97 reports that I used to publish to MS Word that worked before we upgraded to Access 2K and Word 2K. Although there were some minor discrepancies, I was able to tweak the access...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
7
by: Mike L | last post by:
I want frmMain.text to show the current publish version. What is the code to get the current publish version? For example. frmMain.text = "My Application Version: " & project.publish.version ...
4
by: Mike L | last post by:
Error occurs on "System.Deployment.Application.ApplicationDeployment.CurrentDeployment" ** Here is my code private void frmMain_Load(object sender, System.EventArgs e) {...
10
by: WT | last post by:
Hello, I have been publishing my web site many times to the remote where resides my final web site. Everything was ok, but to-day, without any configuration change, vs doesn't copy final files...
5
by: barrysmith1966 | last post by:
Hello, I am using VS2005 and the publish feature. Is there any way I get the version number from within my application? i.e. I have a splash screen and would like to display the latest...
0
by: Chris Davoli | last post by:
Desktop Environment - Win XP Pro 2002 SP2, Visual Studio 2005 Professional Server Enviroment - Windows Server 2003 My debugging is working just fine on my local machine (gives me line number and...
2
by: GaryDean | last post by:
although my publish usually works for my asp.net 2.0 projects, sometimes it just says "Publish Failed". Is there anywhere I can look to see the reason? Perhaps a log? -- Regards, Gary Blakely
6
by: Aussie Rules | last post by:
Hi, I use the publish feature within Vs.net 2008, and have it set to increment on each build/publish I want to be able to display this as my application version number, but can not see how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.