473,769 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2482
Hi,

this should work:

string MyVersion = AppVersion.Majo r.ToString() + "." +
AppVersion.Mino r.ToString() + "." + AppVersion.Revi sion.ToString() ;

Best regards,

Marc Höppner
NeoGeo

"Karsten Grombach" <ka************ ****@spamtria.d e> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
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**********@h otmail.com> schrieb im Newsbeitrag
news:OH******** ******@tk2msftn gp13.phx.gbl...
Hi,

this should work:

string MyVersion = AppVersion.Majo r.ToString() + "." +
AppVersion.Mino r.ToString() + "." + AppVersion.Revi sion.ToString() ;

Best regards,

Marc Höppner
NeoGeo

"Karsten Grombach" <ka************ ****@spamtria.d e> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
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**********@h otmail.com> schrieb im Newsbeitrag
news:Ov******** ******@TK2MSFTN GP10.phx.gbl...
Oops, sorry. Apparently I posted only 1 of the 3 lines I wanted to post.
here is the rest:

System.Reflecti on.Assembly MyAssembly =
System.Reflecti on.Assembly.Get ExecutingAssemb ly();

System.Version AppVersion = MyAssembly.GetN ame().Version;

string MyVersion = AppVersion.Majo r.ToString() + "." +
AppVersion.Mino r.ToString() + "." + AppVersion.Revi sion.ToString() ;

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

"Marc Hoeppner" <ma**********@h otmail.com> schrieb im Newsbeitrag
news:OH******** ******@tk2msftn gp13.phx.gbl...
Hi,

this should work:

string MyVersion = AppVersion.Majo r.ToString() + "." +
AppVersion.Mino r.ToString() + "." + AppVersion.Revi sion.ToString() ;

Best regards,

Marc Höppner
NeoGeo

"Karsten Grombach" <ka************ ****@spamtria.d e> wrote in message
news:%2******** **********@tk2m sftngp13.phx.gb l...
> 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
3598
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 installing the VS.NET 2005 beta the web browser embedded control is now running in the .NET 2.0 beta runtime environment, and crashing. Is it possible to have different IE hosted controls running side by side in different versions of the .NET...
1
1931
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.0 dll correctly use the .net 2.0 system's dll? and the 1.1 correclty use 1.1 dlls? I'm know how exe choose .net version. But I cant figureout what happens when the exe uses dll compiled with different versions.
2
4284
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 = obj1.m1() + obj2.m2(p1, p2) - Class3.m3() or if (obj1.p1 > obj2.m2()) {
3
1740
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 runtime? Thanks for any help!
3
1388
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
1759
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. http://216.239.59.104/search?q=cache:FDooiVSC56sJ:myservicescentral.com/site/Alpha-Beta-RC1-RC2-RTM.aspx%3Fpost%3D79%26group%3Dmicrosoft.private.whidbey.framework_sdk+cannot+inherit+from+%27System::Runtime::InteropServices::DispIdAttribute%27&hl=fr I copy/paste his description: "I have both version of Visual Studio...
4
6371
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) { System.Deployment.Application.ApplicationDeployment ad = System.Deployment.Application.ApplicationDeployment.CurrentDeployment;
7
1406
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 look at at the database window, open tables, make changes.
17
7667
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 do not, and it's not clear when they would get it. His thought was to use the upcoming Access 2007 runtime to allow the users who are still running Office 2003 to be able to run the database. While I use multiple versions of Access on my...
0
9422
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10038
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9857
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8867
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3952
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.