Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Displaying Version and Build info in my program.

Displaying Version and Build info in my program.

Scheduled Pinned Locked Moved C#
helpquestionannouncement
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    frogb0x
    wrote on last edited by
    #1

    Hey all, I'm wondering how I can get the version and build info from AssemblyInfo.cs to display in my program. I'm making an "About Box" and I'd like to be able to display this info on a label in the box. Can anyone help me out?

    A 1 Reply Last reply
    0
    • F frogb0x

      Hey all, I'm wondering how I can get the version and build info from AssemblyInfo.cs to display in my program. I'm making an "About Box" and I'd like to be able to display this info on a label in the box. Can anyone help me out?

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Application.ProductVersion

      F 1 Reply Last reply
      0
      • A Anonymous

        Application.ProductVersion

        F Offline
        F Offline
        frogb0x
        wrote on last edited by
        #3

        Is there a way to make it just show the major/minor version? Or only the build number?

        S 1 Reply Last reply
        0
        • F frogb0x

          Is there a way to make it just show the major/minor version? Or only the build number?

          S Offline
          S Offline
          sandman_max
          wrote on last edited by
          #4

          Version ver = new Version(Application.ProductVersion); string s = String.Format("v. {0:#}.{1:#}.{2:#}.{3:#}", ver.Major, ver.Minor, ver.Build, ver.Revision); Check out the Version class in Help for more info.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups