Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36375

Change assembly version is adding ? char at the beginning of the AssemblyInfo.cs

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • master Linux, Slave: windows
      Jenkins ver. 2.11

      The plugin is adding a "?" char to all AssemblyInfo.cs files,
      Ex.
      ?using System.Reflection;
      using System.Runtime.CompilerServices;
      using System.Runtime.InteropServices;

      // General Information about an assembly is controlled through the following
      // set of attributes. Change these attribute values to modify the information

      It do change the assembyVersion line correctly
      [assembly: AssemblyVersion("4.6.7.1")]

      But the build is failing because the ? at the beginning of the file

          [JENKINS-36375] Change assembly version is adding ? char at the beginning of the AssemblyInfo.cs

          Eyzen M. Kim created issue -

          Eyzen M. Kim added a comment -

          I'm using change-assembly-version-plugin 1.5.1

          Eyzen M. Kim added a comment - I'm using change-assembly-version-plugin 1.5.1

          Bert Outtier added a comment -

          Same issue here.
          change-assembly-version-plugin 1.5.1
          Linux jenkins master
          Windows 8.1 build node.

          Bert Outtier added a comment - Same issue here. change-assembly-version-plugin 1.5.1 Linux jenkins master Windows 8.1 build node.
          Steph B made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

          Steph B added a comment - - edited

          Same issue here.
          Solution can't be built due this extra '?' char.

          change-assembly-version-plugin 1.5.1
          Windows Server 2012 R2 build slave

          Steph B added a comment - - edited Same issue here. Solution can't be built due this extra '?' char. change-assembly-version-plugin 1.5.1 Windows Server 2012 R2 build slave
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173080 ] New: JNJira + In-Review [ 184922 ]

          simon so added a comment -

          Same here

          change-assembly-version-plugin 1.5.1
          Slave
          Windows 10 build node

          simon so added a comment - Same here change-assembly-version-plugin 1.5.1 Slave Windows 10 build node

          Steph B added a comment -

          Don't know why it's so long for a fix !
          Here a small workaround :

          • use the plugin as is.
          • to remove the extra character i use the following job step :
            Execute Window Batch command :
            for /f %%f in ('dir /s /b AssemblyInfo.cs') do sed -i '1s/.//' %%f

          Then the build is OK.
          Hope it will help.

          Regards.

          Steph B added a comment - Don't know why it's so long for a fix ! Here a small workaround : use the plugin as is. to remove the extra character i use the following job step : Execute Window Batch command : for /f %%f in ('dir /s /b AssemblyInfo.cs') do sed -i '1s/.//' %%f Then the build is OK. Hope it will help. Regards.
          Michael Fowler made changes -
          Link New: This issue duplicates JENKINS-25476 [ JENKINS-25476 ]

          tjormola added a comment -

          tjormola added a comment - Proposed fix at https://github.com/jenkinsci/change-assembly-version-plugin/pull/10

            sankethpb Sanketh PB
            eyzenm Eyzen M. Kim
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: