Display Build Version of Application at runtime

Discussion in 'ASP .Net' started by Karsten Grombach, Aug 7, 2003.

  1. 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
     
    Karsten Grombach, Aug 7, 2003
    #1
    1. Advertising

  2. Hi,

    this should work:

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

    Best regards,

    Marc Höppner
    NeoGeo

    "Karsten Grombach" <> wrote in message
    news:%23%...
    > 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
    >
    >
     
    Marc Hoeppner, Aug 7, 2003
    #2
    1. Advertising

  3. hi marc,
    in which namespace does AppVersion belong to.
    I can't find it in the documentation
    regards
    karsten

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

    >
    >
     
    Karsten Grombach, Aug 7, 2003
    #3
  4. thanks :)
    "Marc Hoeppner" <> schrieb im Newsbeitrag
    news:...
    > 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" <> wrote in message
    > news:...
    > > hi marc,
    > > in which namespace does AppVersion belong to.
    > > I can't find it in the documentation
    > > regards
    > > karsten
    > >
    > > "Marc Hoeppner" <> schrieb im Newsbeitrag
    > > news:...
    > > > Hi,
    > > >
    > > > this should work:
    > > >
    > > > string MyVersion = AppVersion.Major.ToString() + "." +
    > > > AppVersion.Minor.ToString() + "." + AppVersion.Revision.ToString();
    > > >
    > > > Best regards,
    > > >
    > > > Marc Höppner
    > > > NeoGeo
    > > >
    > > > "Karsten Grombach" <> wrote in message
    > > > news:%23%...
    > > > > 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
    > > > >
    > > > >
    > > >
    > > >

    > >
    > >

    >
    >
     
    Karsten Grombach, Aug 7, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vagif Abilov
    Replies:
    2
    Views:
    575
    Vagif Abilov
    Jul 7, 2004
  2. Luqman
    Replies:
    2
    Views:
    403
    Luqman
    Jul 2, 2007
  3. V Green
    Replies:
    0
    Views:
    863
    V Green
    Feb 5, 2008
  4. PA Bear [MS MVP]
    Replies:
    0
    Views:
    974
    PA Bear [MS MVP]
    Feb 5, 2008
  5. MowGreen [MVP]
    Replies:
    5
    Views:
    2,025
    PA Bear [MS MVP]
    Feb 9, 2008
Loading...

Share This Page