Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Display Build Version of Application at runtime

Reply
Thread Tools

Display Build Version of Application at runtime

 
 
Karsten Grombach
Guest
Posts: n/a
 
      08-07-2003
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


 
Reply With Quote
 
 
 
 
Marc Hoeppner
Guest
Posts: n/a
 
      08-07-2003
Hi,

this should work:

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

Best regards,

Marc Höppner
NeoGeo

"Karsten Grombach" <(E-Mail Removed)> wrote in message
news:%23%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
Karsten Grombach
Guest
Posts: n/a
 
      08-07-2003
hi marc,
in which namespace does AppVersion belong to.
I can't find it in the documentation
regards
karsten

"Marc Hoeppner" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Hi,
>
> this should work:
>
> string MyVersion = AppVersion.Major.ToString() + "." +
> AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();
>
> Best regards,
>
> Marc Höppner
> NeoGeo
>
> "Karsten Grombach" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Karsten Grombach
Guest
Posts: n/a
 
      08-07-2003
thanks
"Marc Hoeppner" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > hi marc,
> > in which namespace does AppVersion belong to.
> > I can't find it in the documentation
> > regards
> > karsten
> >
> > "Marc Hoeppner" <(E-Mail Removed)> schrieb im Newsbeitrag
> > news:(E-Mail Removed)...
> > > Hi,
> > >
> > > this should work:
> > >
> > > string MyVersion = AppVersion.Major.ToString() + "." +
> > > AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();
> > >
> > > Best regards,
> > >
> > > Marc Höppner
> > > NeoGeo
> > >
> > > "Karsten Grombach" <(E-Mail Removed)> wrote in message
> > > news:%23%(E-Mail Removed)...
> > > > 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
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Re: Where to get stand alone Dot Net Framework version 1.1, version2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? MowGreen [MVP] ASP .Net 5 02-09-2008 01:55 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
ERROR: Unable to find a version of runtime to run this application sanju_cloud Hardware 0 05-31-2007 10:44 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM



Advertisments