Details

    • Similar Issues:

      Description

      We're having an issue setting up auto-incrementing build version updates with our environment. According to the log file the plugin is doing two things incorrectly.

      The first issue is that the version is not getting put together correctly. Here are the settings we have specified:

      Assembly Version: ${BUILD_NUMBER}
      FileName: ./MyProject/Properties/AssemblyInfo.cs
      RegexPattern: Assembly(\w*)Version\("([0-9]+)\.([0-9]+)\.([0-9])\.([0-9])"\)
      ReplacementPattern: Assembly$1Version("$2.$3.$4.%s")
      

      Based on that configuration we expected to see a version like "1.9.0.131" where 131 is the build number. However, the version is coming out as just "131". See the log message below for an example. This regex does test out with various tools as matching text such as [assembly: AssemblyVersion("1.9.0.1")] or [assembly: AssemblyFileVersion("1.9.0.1")].

      The second issue is the AssemblyInfo file is never getting updated although the log says it has updated the file. We have about 8 projects updating but the behavior is the same so I've cut the messages down to one. Here's the message from the log file that shows up for all of the files:

      
      Changing the file(s) ./MyProject/Properties/AssemblyInfo.cs to version : 131
      
      

        Attachments

          Activity

          kettch19 Ryan Griggs created issue -
          rachel Rachel M. made changes -
          Field Original Value New Value
          Assignee Sanketh PB [ sankethpb ] Rachel Moreno [ rachel ]
          rachel Rachel M. made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Not A Defect [ 7 ]
          rachel Rachel M. made changes -
          Resolution Not A Defect [ 7 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          rachel Rachel M. made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rachel Rachel M. made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          rachel Rachel M. made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Not A Defect [ 7 ]

            People

            • Assignee:
              rachel Rachel M.
              Reporter:
              kettch19 Ryan Griggs
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: