Assembly patching didn't work after updating build number

goldsmith.mike's Avatar

goldsmith.mike

10 Apr, 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 10 Apr, 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%'
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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