473,387 Members | 1,483 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,387 software developers and data experts.

Display Build Version of Application at runtime

How can I display the current build version of my webapplication at runtime?
i.e. the version I set in my web deployment project.

regards and thanks
karsten
Nov 17 '05 #1
3 2460
Hi,

this should work:

string MyVersion = AppVersion.Major.ToString() + "." +
AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();

Best regards,

Marc Höppner
NeoGeo

"Karsten Grombach" <ka****************@spamtria.de> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
How can I display the current build version of my webapplication at runtime? i.e. the version I set in my web deployment project.

regards and thanks
karsten

Nov 17 '05 #2
hi marc,
in which namespace does AppVersion belong to.
I can't find it in the documentation
regards
karsten

"Marc Hoeppner" <ma**********@hotmail.com> schrieb im Newsbeitrag
news:OH**************@tk2msftngp13.phx.gbl...
Hi,

this should work:

string MyVersion = AppVersion.Major.ToString() + "." +
AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();

Best regards,

Marc Höppner
NeoGeo

"Karsten Grombach" <ka****************@spamtria.de> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
How can I display the current build version of my webapplication at

runtime?
i.e. the version I set in my web deployment project.

regards and thanks
karsten


Nov 17 '05 #3
thanks :)
"Marc Hoeppner" <ma**********@hotmail.com> schrieb im Newsbeitrag
news:Ov**************@TK2MSFTNGP10.phx.gbl...
Oops, sorry. Apparently I posted only 1 of the 3 lines I wanted to post.
here is the rest:

System.Reflection.Assembly MyAssembly =
System.Reflection.Assembly.GetExecutingAssembly();

System.Version AppVersion = MyAssembly.GetName().Version;

string MyVersion = AppVersion.Major.ToString() + "." +
AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();

"Karsten Grombach" <ka****************@spamtria.de> wrote in message
news:eX**************@TK2MSFTNGP12.phx.gbl...
hi marc,
in which namespace does AppVersion belong to.
I can't find it in the documentation
regards
karsten

"Marc Hoeppner" <ma**********@hotmail.com> schrieb im Newsbeitrag
news:OH**************@tk2msftngp13.phx.gbl...
Hi,

this should work:

string MyVersion = AppVersion.Major.ToString() + "." +
AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();

Best regards,

Marc Höppner
NeoGeo

"Karsten Grombach" <ka****************@spamtria.de> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
> How can I display the current build version of my webapplication at
runtime?
> i.e. the version I set in my web deployment project.
>
> regards and thanks
> karsten
>
>



Nov 17 '05 #4

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

Similar topics

3
by: Mathew | last post by:
Hi How do you specfiy the version of the .net runtime libraries loaded for a ..net controls hosted in Internet Explorer 6? I have a control that's designed to work with .NET 1.1, but after...
1
by: al_qwertyuiop | last post by:
Hi, I was wondering what happens if an .net exe compiled with 1.1 uses one dll compiled with 2.0 and one dll compiled with 1.1. Supposing that the target machine has both 1.1 and 2.0. Does the...
2
by: Jeffrey Ganping Chen | last post by:
I'm trying to build a generic runtime C# expression evaluation engine to allow the user to evaluate any C# code blocks at runtime within the application's context. For example, obj4.p4 =...
3
by: dave | last post by:
Hello I would like to display the Version number of my application in the About screen. I manually set this value in the Properties of my deployment project. How can this value be accessed at...
3
by: Jeremy | last post by:
Can't seem to find current build number anywhere at runtime. Application.productversion gives me a build number-like string that has no relation to anything I know about. Jeremy
1
by: David Alloza | last post by:
Hello, I have exactly the same problem as this guy, but in the case of a ( final ) commercial version of .NET2005. ...
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) {...
7
by: MLH | last post by:
I use this line DoCmd.SelectObject acTable, "tblAdmin", True when I want to display database window. Often- times, working on a remote mde via a TCP/IP connection, its convenient to have a...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.