Assembly patching didn't work after updating build number

goldsmith.mike's Avatar

goldsmith.mike

Apr 10, 2017 @ 09:45 AM

Hello

I have setup my project to update the AppVeyor build number on repository tags, however the assembly patching did not apply correctly. The following build has a tag of "2.4.3" but the binaries have a file and assembly version of 0.0.0.0. The Update-AppVeyor command seems to seems to have worked correctly because the artifacts are named correctly.
https://ci.appveyor.com/project/Couchbase/couchbase-net-client/build/2.4.3

This is the link to my appveyor.yml
https://github.com/couchbase/couchbase-net-client/blob/master/appveyor.yml

Thanks

  1. Support Staff 1 Posted by Feodor Fitsner on Apr 10, 2017 @ 11:35 PM

    Feodor Fitsner's Avatar

    Hi Mike,

    Try using this instead:

    assembly_info:
      patch: true
      file: '**\AssemblyInfo.*'
      assembly_version: '%APPVEYOR_BUILD_VERSION%'
      assembly_file_version: '%APPVEYOR_BUILD_VERSION%'
      assembly_informational_version: '%APPVEYOR_BUILD_VERSION%'
    
  2. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:16 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac