Automatic build number broken?

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

    #1

    Automatic build number broken?

    Hi.

    I'm using automatic increase on the assembly build number. Only problem is
    it's doesn't increase. Anyone know what might cause this?

    In AssemblyInfo.cs :

    [assembly: AssemblyVersion ("1.0.*")]

    Thanks!

    /David.


  • Grant Richins [MS]

    #2
    Re: Automatic build number broken?

    I believe the project system is 'smart' enough to not even invoke the
    compiler if none of the sources have changed since the last build. Try
    changing a file (like adding a blank line and then deleting it) and the
    build again to see if it changes.

    --
    --Grant
    This posting is provided "AS IS" with no warranties, and confers no rights.


    Comment

    • David Lindgren

      #3
      Re: Automatic build number broken?

      Well, I'm working on my code every day and it stopped increasing looong time
      ago. So that's not it.

      "Grant Richins [MS]" <grantri@online .microsoft.com> skrev i meddelandet
      news:evpv8jshDH A.3104@TK2MSFTN GP11.phx.gbl...[color=blue]
      > I believe the project system is 'smart' enough to not even invoke the
      > compiler if none of the sources have changed since the last build. Try
      > changing a file (like adding a blank line and then deleting it) and the
      > build again to see if it changes.
      >
      > --
      > --Grant
      > This posting is provided "AS IS" with no warranties, and confers no[/color]
      rights.[color=blue]
      >
      >[/color]


      Comment

      • Grant Richins [MS]

        #4
        Re: Automatic build number broken?

        Just for the fun of it, can you try editing the file that has the
        AssemblyVersion attribute?

        Also what version number did it stop on?

        --
        --Grant
        This posting is provided "AS IS" with no warranties, and confers no rights.


        Comment

        • Angie Ye

          #5
          Re: Automatic build number broken?

          Assuming it worked before, try deleting the obj folder then redo the build.

          -Angie

          "David Lindgren" <david.lindgren @hogia.se.REMOV E!> wrote in message
          news:O8BqYA2hDH A.3104@TK2MSFTN GP11.phx.gbl...[color=blue]
          > Well, I'm working on my code every day and it stopped increasing looong[/color]
          time[color=blue]
          > ago. So that's not it.
          >
          > "Grant Richins [MS]" <grantri@online .microsoft.com> skrev i meddelandet
          > news:evpv8jshDH A.3104@TK2MSFTN GP11.phx.gbl...[color=green]
          > > I believe the project system is 'smart' enough to not even invoke the
          > > compiler if none of the sources have changed since the last build. Try
          > > changing a file (like adding a blank line and then deleting it) and the
          > > build again to see if it changes.
          > >
          > > --
          > > --Grant
          > > This posting is provided "AS IS" with no warranties, and confers no[/color]
          > rights.[color=green]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • David Lindgren

            #6
            Re: Automatic build number broken?

            Unfortunately that didn't work either :-(

            /David.

            "Angie Ye" <aye3002@hotmai l.com> skrev i meddelandet
            news:bltfqc$fc5 $1@sun-news.laserlink. net...[color=blue]
            > Assuming it worked before, try deleting the obj folder then redo the[/color]
            build.[color=blue]
            >
            > -Angie
            >
            > "David Lindgren" <david.lindgren @hogia.se.REMOV E!> wrote in message
            > news:O8BqYA2hDH A.3104@TK2MSFTN GP11.phx.gbl...[color=green]
            > > Well, I'm working on my code every day and it stopped increasing looong[/color]
            > time[color=green]
            > > ago. So that's not it.
            > >
            > > "Grant Richins [MS]" <grantri@online .microsoft.com> skrev i meddelandet
            > > news:evpv8jshDH A.3104@TK2MSFTN GP11.phx.gbl...[color=darkred]
            > > > I believe the project system is 'smart' enough to not even invoke the
            > > > compiler if none of the sources have changed since the last build.[/color][/color][/color]
            Try[color=blue][color=green][color=darkred]
            > > > changing a file (like adding a blank line and then deleting it) and[/color][/color][/color]
            the[color=blue][color=green][color=darkred]
            > > > build again to see if it changes.
            > > >
            > > > --
            > > > --Grant
            > > > This posting is provided "AS IS" with no warranties, and confers no[/color]
            > > rights.[color=darkred]
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Grant Richins [MS]

              #7
              Re: Automatic build number broken?

              So is it just the one project that doesn't increment? Can you create a new
              console project just like this and see if it works:

              using System;
              using System.Reflecti on;

              [assembly: AssemblyVersion ("1.0.*")]

              class TestIncrement {
              public static void Main() {
              Console.WriteLi ne(typeof(TestI ncrement).Assem bly.GetName().V ersion);
              }
              }

              Then compile and run it multiple times to see if it changes?

              --
              --Grant
              This posting is provided "AS IS" with no warranties, and confers no rights.


              Comment

              Working...