Version Numbering

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Miro

    Version Numbering

    Sorry for all the posts today. Just not been a good day.

    I cant seem to figure out version numbering.

    I click on the MyProject and set up the Major, Minor, MajorRevision,
    MinorRevision as 1,2,3,4 respectivly.

    But

    Debug.WriteLine (My.Application .Info.Version.M ajor.ToString)
    Debug.WriteLine (My.Application .Info.Version.M inor.ToString)
    Debug.WriteLine (My.Application .Info.Version.M ajorRevision.To String)
    Debug.WriteLine (My.Application .Info.Version.M inorRevision.To String)

    does not return the proper values.
    Its as if its grabbing the values from somehwere else.

    Im basically trying to throw some versions in a label to display them but
    its not grabbing the version from the myporject settings. So where do I get
    / how do I get the settings i setup in there?

    Anyideas ?


    Miro


  • Hoop

    #2
    Re: Version Numbering

    On Jul 30, 6:21 pm, "Miro" <miron...@golde n.netwrote:
    Sorry for all the posts today. Just not been a good day.
    >
    I cant seem to figure out version numbering.
    >
    I click on the MyProject and set up the Major, Minor, MajorRevision,
    MinorRevision as 1,2,3,4 respectivly.
    >
    But
    >
    Debug.WriteLine (My.Application .Info.Version.M ajor.ToString)
    Debug.WriteLine (My.Application .Info.Version.M inor.ToString)
    Debug.WriteLine (My.Application .Info.Version.M ajorRevision.To String)
    Debug.WriteLine (My.Application .Info.Version.M inorRevision.To String)
    >
    does not return the proper values.
    Its as if its grabbing the values from somehwere else.
    >
    Im basically trying to throw some versions in a label to display them but
    its not grabbing the version from the myporject settings. So where do I get
    / how do I get the settings i setup in there?
    >
    Anyideas ?
    >
    Miro
    Hi Miro,
    Is that done by selecting Project/Properties/Assembly Information..
    and enter the assembly version numbers?
    Jeff

    Comment

    • Miro

      #3
      Re: Version Numbering

      No,

      I go to my properties and then click on the "Publish Tab", and then there is
      a Publish Version in the bottom.
      Those dont seem to do anything but the "Publish now" executables.

      Miro


      "Hoop" <jcollett@oshtr uck.comwrote in message
      news:1185883591 .564111.79660@w 3g2000hsg.googl egroups.com...
      On Jul 30, 6:21 pm, "Miro" <miron...@golde n.netwrote:
      >Sorry for all the posts today. Just not been a good day.
      >>
      >I cant seem to figure out version numbering.
      >>
      >I click on the MyProject and set up the Major, Minor, MajorRevision,
      >MinorRevisio n as 1,2,3,4 respectivly.
      >>
      >But
      >>
      > Debug.WriteLine (My.Application .Info.Version.M ajor.ToString)
      > Debug.WriteLine (My.Application .Info.Version.M inor.ToString)
      >>
      >Debug.WriteLin e(My.Applicatio n.Info.Version. MajorRevision.T oString)
      >>
      >Debug.WriteLin e(My.Applicatio n.Info.Version. MinorRevision.T oString)
      >>
      >does not return the proper values.
      >Its as if its grabbing the values from somehwere else.
      >>
      >Im basically trying to throw some versions in a label to display them but
      >its not grabbing the version from the myporject settings. So where do I
      >get
      >/ how do I get the settings i setup in there?
      >>
      >Anyideas ?
      >>
      >Miro
      >
      Hi Miro,
      Is that done by selecting Project/Properties/Assembly Information..
      and enter the assembly version numbers?
      Jeff
      >

      Comment

      • Hoop

        #4
        Re: Version Numbering

        On Jul 31, 8:14 am, "Miro" <miron...@golde n.netwrote:
        No,
        >
        I go to my properties and then click on the "Publish Tab", and then there is
        a Publish Version in the bottom.
        Those dont seem to do anything but the "Publish now" executables.
        >
        Miro
        >
        "Hoop" <jcoll...@oshtr uck.comwrote in message
        >
        news:1185883591 .564111.79660@w 3g2000hsg.googl egroups.com...
        >
        >
        >
        On Jul 30, 6:21 pm, "Miro" <miron...@golde n.netwrote:
        Sorry for all the posts today. Just not been a good day.
        >
        I cant seem to figure out version numbering.
        >
        I click on the MyProject and set up the Major, Minor, MajorRevision,
        MinorRevision as 1,2,3,4 respectivly.
        >
        But
        >
        Debug.WriteLine (My.Application .Info.Version.M ajor.ToString)
        Debug.WriteLine (My.Application .Info.Version.M inor.ToString)
        >
        Debug.WriteLine (My.Application .Info.Version.M ajorRevision.To String)
        >
        Debug.WriteLine (My.Application .Info.Version.M inorRevision.To String)
        >
        does not return the proper values.
        Its as if its grabbing the values from somehwere else.
        >
        Im basically trying to throw some versions in a label to display them but
        its not grabbing the version from the myporject settings. So where do I
        get
        / how do I get the settings i setup in there?
        >
        Anyideas ?
        >
        Miro
        >
        Hi Miro,
        Is that done by selecting Project/Properties/Assembly Information..
        and enter the assembly version numbers?
        Jeff- Hide quoted text -
        >
        - Show quoted text -
        Hi,
        I have a VB app were in the aboutbox I do this,

        lblVersion.Text = "Version " & My.Application. Info.Version.Ma jor _
        & "." &
        My.Application. Info.Version.Mi nor _
        & "." &
        My.Application. Info.Version.Re vision

        And I set those values like this,
        right click on the project name in solution explorer, select
        properties from the pop-up menu.
        On the Application tab select Assembly Information.. and set the
        version via the
        Assembly Version.
        And that works.
        Jeff

        Comment

        • Miro

          #5
          Re: Version Numbering

          Thanks,

          I was adjusting the "Publish" version and I thougth that was the one used
          everywhere.

          Miro

          "Hoop" <jcollett@oshtr uck.comwrote in message
          news:1185900571 .121009.179700@ q75g2000hsh.goo glegroups.com.. .
          On Jul 31, 8:14 am, "Miro" <miron...@golde n.netwrote:
          >No,
          >>
          >I go to my properties and then click on the "Publish Tab", and then there
          >is
          >a Publish Version in the bottom.
          >Those dont seem to do anything but the "Publish now" executables.
          >>
          >Miro
          >>
          >"Hoop" <jcoll...@oshtr uck.comwrote in message
          >>
          >news:118588359 1.564111.79660@ w3g2000hsg.goog legroups.com...
          >>
          >>
          >>
          On Jul 30, 6:21 pm, "Miro" <miron...@golde n.netwrote:
          >Sorry for all the posts today. Just not been a good day.
          >>
          >I cant seem to figure out version numbering.
          >>
          >I click on the MyProject and set up the Major, Minor, MajorRevision,
          >MinorRevisio n as 1,2,3,4 respectivly.
          >>
          >But
          >>
          > Debug.WriteLine (My.Application .Info.Version.M ajor.ToString)
          > Debug.WriteLine (My.Application .Info.Version.M inor.ToString)
          >>
          >Debug.WriteLin e(My.Applicatio n.Info.Version. MajorRevision.T oString)
          >>
          >Debug.WriteLin e(My.Applicatio n.Info.Version. MinorRevision.T oString)
          >>
          >does not return the proper values.
          >Its as if its grabbing the values from somehwere else.
          >>
          >Im basically trying to throw some versions in a label to display them
          >but
          >its not grabbing the version from the myporject settings. So where do
          >I
          >get
          >/ how do I get the settings i setup in there?
          >>
          >Anyideas ?
          >>
          >Miro
          >>
          Hi Miro,
          Is that done by selecting Project/Properties/Assembly Information..
          and enter the assembly version numbers?
          Jeff- Hide quoted text -
          >>
          >- Show quoted text -
          >
          Hi,
          I have a VB app were in the aboutbox I do this,
          >
          lblVersion.Text = "Version " & My.Application. Info.Version.Ma jor _
          & "." &
          My.Application. Info.Version.Mi nor _
          & "." &
          My.Application. Info.Version.Re vision
          >
          And I set those values like this,
          right click on the project name in solution explorer, select
          properties from the pop-up menu.
          On the Application tab select Assembly Information.. and set the
          version via the
          Assembly Version.
          And that works.
          Jeff
          >

          Comment

          Working...