Changing auto-build number

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

    Changing auto-build number

    Is it possible to manually change the auto-build number used in VS.NET?

    Thanks,
    Robert


  • Branimir Giurov

    #2
    Re: Changing auto-build number

    You can set it as a constant, by editing the assembly.cs file.
    The AssemblyVersion attribute:

    [assembly AssemblyVersion ("1.0.0.0")]

    Cheers,
    Branimir

    --
    Branimir Giurov
    MCSD.NET, MCDBA
    Langkah Aman: Bermain di Situs Slot Online Legal




    "Robert Misiak" <rmisiak@users. cutthispartout. sourceforge.net > wrote in
    message news:EaaMc.1086 3$mL5.8543@news read1.news.pas. earthlink.net.. .[color=blue]
    > Is it possible to manually change the auto-build number used in VS.NET?
    >
    > Thanks,
    > Robert
    >
    >[/color]


    Comment

    • Robert Misiak

      #3
      Re: Changing auto-build number

      Thanks, but perhaps I should have explained myself better.

      I already have set AssemblyInfo.cs appropriately. However the current build
      is x.x.1665.x, and soon that 3rd number will increase. Call me old
      fashioned but I would like to skip the next number and go directly to
      x.x.1667.x. Is that possible?

      Robert



      "Branimir Giurov" <branimir@nospa m.com> wrote in message
      news:%23YrgnyMc EHA.3476@tk2msf tngp13.phx.gbl. ..[color=blue]
      > You can set it as a constant, by editing the assembly.cs file.
      > The AssemblyVersion attribute:
      >
      > [assembly AssemblyVersion ("1.0.0.0")]
      >
      > Cheers,
      > Branimir
      >
      > --
      > Branimir Giurov
      > MCSD.NET, MCDBA
      > www.sofiadev.org
      >
      >
      >
      > "Robert Misiak" <rmisiak@users. cutthispartout. sourceforge.net > wrote in
      > message news:EaaMc.1086 3$mL5.8543@news read1.news.pas. earthlink.net.. .[color=green]
      > > Is it possible to manually change the auto-build number used in VS.NET?
      > >
      > > Thanks,
      > > Robert
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • C Addison Ritchie

        #4
        Re: Changing auto-build number

        The easiest thing to do would be to set your version explicitly to x.x.1667.*

        That should get you what you want.

        --
        C Addison Ritchie, MCSD
        Ritch Consulting, Inc.


        "Robert Misiak" wrote:
        [color=blue]
        > Thanks, but perhaps I should have explained myself better.
        >
        > I already have set AssemblyInfo.cs appropriately. However the current build
        > is x.x.1665.x, and soon that 3rd number will increase. Call me old
        > fashioned but I would like to skip the next number and go directly to
        > x.x.1667.x. Is that possible?
        >
        > Robert
        >
        >
        >
        > "Branimir Giurov" <branimir@nospa m.com> wrote in message
        > news:%23YrgnyMc EHA.3476@tk2msf tngp13.phx.gbl. ..[color=green]
        > > You can set it as a constant, by editing the assembly.cs file.
        > > The AssemblyVersion attribute:
        > >
        > > [assembly AssemblyVersion ("1.0.0.0")]
        > >
        > > Cheers,
        > > Branimir
        > >
        > > --
        > > Branimir Giurov
        > > MCSD.NET, MCDBA
        > > www.sofiadev.org
        > >
        > >
        > >
        > > "Robert Misiak" <rmisiak@users. cutthispartout. sourceforge.net > wrote in
        > > message news:EaaMc.1086 3$mL5.8543@news read1.news.pas. earthlink.net.. .[color=darkred]
        > > > Is it possible to manually change the auto-build number used in VS.NET?
        > > >
        > > > Thanks,
        > > > Robert
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >
        >[/color]

        Comment

        • Robert Misiak

          #5
          Re: Changing auto-build number

          Thanks, but this is an ongoing project that has been going on for over a
          year - there are new builds at least once a week and frequently a few times
          a day, it would be difficult to explicitly set the build number each time.

          Robert


          "C Addison Ritchie" <CAddisonRitchi e@discussions.m icrosoft.com> wrote in
          message news:4E653E6C-B830-4530-B234-75EB898E2E39@mi crosoft.com...[color=blue]
          > The easiest thing to do would be to set your version explicitly to[/color]
          x.x.1667.*[color=blue]
          >
          > That should get you what you want.
          >
          > --
          > C Addison Ritchie, MCSD
          > Ritch Consulting, Inc.
          >
          >
          > "Robert Misiak" wrote:
          >[color=green]
          > > Thanks, but perhaps I should have explained myself better.
          > >
          > > I already have set AssemblyInfo.cs appropriately. However the current[/color][/color]
          build[color=blue][color=green]
          > > is x.x.1665.x, and soon that 3rd number will increase. Call me old
          > > fashioned but I would like to skip the next number and go directly to
          > > x.x.1667.x. Is that possible?
          > >
          > > Robert
          > >
          > >
          > >
          > > "Branimir Giurov" <branimir@nospa m.com> wrote in message
          > > news:%23YrgnyMc EHA.3476@tk2msf tngp13.phx.gbl. ..[color=darkred]
          > > > You can set it as a constant, by editing the assembly.cs file.
          > > > The AssemblyVersion attribute:
          > > >
          > > > [assembly AssemblyVersion ("1.0.0.0")]
          > > >
          > > > Cheers,
          > > > Branimir
          > > >
          > > > --
          > > > Branimir Giurov
          > > > MCSD.NET, MCDBA
          > > > www.sofiadev.org
          > > >
          > > >
          > > >
          > > > "Robert Misiak" <rmisiak@users. cutthispartout. sourceforge.net > wrote[/color][/color][/color]
          in[color=blue][color=green][color=darkred]
          > > > message news:EaaMc.1086 3$mL5.8543@news read1.news.pas. earthlink.net.. .
          > > > > Is it possible to manually change the auto-build number used in[/color][/color][/color]
          VS.NET?[color=blue][color=green][color=darkred]
          > > > >
          > > > > Thanks,
          > > > > Robert
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >
          > >[/color][/color]


          Comment

          • Eric Cadwell

            #6
            Re: Changing auto-build number

            You can set it to whatever you want.

            -Eric


            Comment

            • Eric Cadwell

              #7
              Re: Changing auto-build number

              Just set the value and leave it - not on each build, but on each
              deployment.. I agree that the x.x.1667.* format would be best.

              The only real requirement is that you change the build number when you
              deploy. MSI will not recognize the revision number so each deployed version
              must be unique in the major, minor, or build number.

              -Eric


              Comment

              • Robert Misiak

                #8
                Re: Changing auto-build number

                This doesn't seem right though because it's been x.x.1665.x for a week or
                so. I also just changed the system date and recompiled and it was still
                1665. The number must be stored in the project somewhere because I've found
                that compiling on a different system will produce a similar build number.

                Robert


                "C Addison Ritchie" <CAddisonRitchi e@discussions.m icrosoft.com> wrote in
                message news:91203F39-73B8-4B81-89E0-37F6F13E6B9A@mi crosoft.com...[color=blue]
                > The third number you are worried about is based on the number of days[/color]
                since January 1, 2000. Which means today it is going to be 1665. Tomorrow
                (July 24, 2004) it will be the number which we will not mention. :-)
                Sunday it will be 1668. So the answer seems to be... don't compile
                tomorrow.[color=blue]
                >
                > --
                > C Addison Ritchie, MCSD
                > Ritch Consulting, Inc.
                >
                >
                > "Robert Misiak" wrote:
                >[color=green]
                > > Thanks, but this is an ongoing project that has been going on for over a
                > > year - there are new builds at least once a week and frequently a few[/color][/color]
                times[color=blue][color=green]
                > > a day, it would be difficult to explicitly set the build number each[/color][/color]
                time.[color=blue][color=green]
                > >
                > > Robert
                > >
                > >
                > > "C Addison Ritchie" <CAddisonRitchi e@discussions.m icrosoft.com> wrote in
                > > message news:4E653E6C-B830-4530-B234-75EB898E2E39@mi crosoft.com...[color=darkred]
                > > > The easiest thing to do would be to set your version explicitly to[/color]
                > > x.x.1667.*[color=darkred]
                > > >
                > > > That should get you what you want.
                > > >
                > > > --
                > > > C Addison Ritchie, MCSD
                > > > Ritch Consulting, Inc.
                > > >
                > > >
                > > > "Robert Misiak" wrote:
                > > >
                > > > > Thanks, but perhaps I should have explained myself better.
                > > > >
                > > > > I already have set AssemblyInfo.cs appropriately. However the[/color][/color][/color]
                current[color=blue][color=green]
                > > build[color=darkred]
                > > > > is x.x.1665.x, and soon that 3rd number will increase. Call me old
                > > > > fashioned but I would like to skip the next number and go directly[/color][/color][/color]
                to[color=blue][color=green][color=darkred]
                > > > > x.x.1667.x. Is that possible?
                > > > >
                > > > > Robert
                > > > >
                > > > >
                > > > >
                > > > > "Branimir Giurov" <branimir@nospa m.com> wrote in message
                > > > > news:%23YrgnyMc EHA.3476@tk2msf tngp13.phx.gbl. ..
                > > > > > You can set it as a constant, by editing the assembly.cs file.
                > > > > > The AssemblyVersion attribute:
                > > > > >
                > > > > > [assembly AssemblyVersion ("1.0.0.0")]
                > > > > >
                > > > > > Cheers,
                > > > > > Branimir
                > > > > >
                > > > > > --
                > > > > > Branimir Giurov
                > > > > > MCSD.NET, MCDBA
                > > > > > www.sofiadev.org
                > > > > >
                > > > > >
                > > > > >
                > > > > > "Robert Misiak" <rmisiak@users. cutthispartout. sourceforge.net >[/color][/color][/color]
                wrote[color=blue][color=green]
                > > in[color=darkred]
                > > > > > message[/color][/color][/color]
                news:EaaMc.1086 3$mL5.8543@news read1.news.pas. earthlink.net.. .[color=blue][color=green][color=darkred]
                > > > > > > Is it possible to manually change the auto-build number used in[/color]
                > > VS.NET?[color=darkred]
                > > > > > >
                > > > > > > Thanks,
                > > > > > > Robert
                > > > > > >
                > > > > > >
                > > > > >
                > > > > >
                > > > >
                > > > >
                > > > >[/color]
                > >
                > >
                > >[/color][/color]


                Comment

                • Robert Misiak

                  #9
                  Re: Changing auto-build number

                  Apparently I should have restarted VS.NET when changing the date; when I
                  changed the date to the 7-25 and restarted VS, I got build #1667. Thanks!

                  Robert


                  "C Addison Ritchie" <CAddisonRitchi e@discussions.m icrosoft.com> wrote in
                  message news:91203F39-73B8-4B81-89E0-37F6F13E6B9A@mi crosoft.com...[color=blue]
                  > The third number you are worried about is based on the number of days[/color]
                  since January 1, 2000. Which means today it is going to be 1665. Tomorrow
                  (July 24, 2004) it will be the number which we will not mention. :-)
                  Sunday it will be 1668. So the answer seems to be... don't compile
                  tomorrow.[color=blue]
                  >
                  > --
                  > C Addison Ritchie, MCSD
                  > Ritch Consulting, Inc.
                  >
                  >
                  > "Robert Misiak" wrote:
                  >[color=green]
                  > > Thanks, but this is an ongoing project that has been going on for over a
                  > > year - there are new builds at least once a week and frequently a few[/color][/color]
                  times[color=blue][color=green]
                  > > a day, it would be difficult to explicitly set the build number each[/color][/color]
                  time.[color=blue][color=green]
                  > >
                  > > Robert
                  > >
                  > >
                  > > "C Addison Ritchie" <CAddisonRitchi e@discussions.m icrosoft.com> wrote in
                  > > message news:4E653E6C-B830-4530-B234-75EB898E2E39@mi crosoft.com...[color=darkred]
                  > > > The easiest thing to do would be to set your version explicitly to[/color]
                  > > x.x.1667.*[color=darkred]
                  > > >
                  > > > That should get you what you want.
                  > > >
                  > > > --
                  > > > C Addison Ritchie, MCSD
                  > > > Ritch Consulting, Inc.
                  > > >
                  > > >
                  > > > "Robert Misiak" wrote:
                  > > >
                  > > > > Thanks, but perhaps I should have explained myself better.
                  > > > >
                  > > > > I already have set AssemblyInfo.cs appropriately. However the[/color][/color][/color]
                  current[color=blue][color=green]
                  > > build[color=darkred]
                  > > > > is x.x.1665.x, and soon that 3rd number will increase. Call me old
                  > > > > fashioned but I would like to skip the next number and go directly[/color][/color][/color]
                  to[color=blue][color=green][color=darkred]
                  > > > > x.x.1667.x. Is that possible?
                  > > > >
                  > > > > Robert
                  > > > >
                  > > > >
                  > > > >
                  > > > > "Branimir Giurov" <branimir@nospa m.com> wrote in message
                  > > > > news:%23YrgnyMc EHA.3476@tk2msf tngp13.phx.gbl. ..
                  > > > > > You can set it as a constant, by editing the assembly.cs file.
                  > > > > > The AssemblyVersion attribute:
                  > > > > >
                  > > > > > [assembly AssemblyVersion ("1.0.0.0")]
                  > > > > >
                  > > > > > Cheers,
                  > > > > > Branimir
                  > > > > >
                  > > > > > --
                  > > > > > Branimir Giurov
                  > > > > > MCSD.NET, MCDBA
                  > > > > > www.sofiadev.org
                  > > > > >
                  > > > > >
                  > > > > >
                  > > > > > "Robert Misiak" <rmisiak@users. cutthispartout. sourceforge.net >[/color][/color][/color]
                  wrote[color=blue][color=green]
                  > > in[color=darkred]
                  > > > > > message[/color][/color][/color]
                  news:EaaMc.1086 3$mL5.8543@news read1.news.pas. earthlink.net.. .[color=blue][color=green][color=darkred]
                  > > > > > > Is it possible to manually change the auto-build number used in[/color]
                  > > VS.NET?[color=darkred]
                  > > > > > >
                  > > > > > > Thanks,
                  > > > > > > Robert
                  > > > > > >
                  > > > > > >
                  > > > > >
                  > > > > >
                  > > > >
                  > > > >
                  > > > >[/color]
                  > >
                  > >
                  > >[/color][/color]


                  Comment

                  Working...