AssemblyInfo patching not working properly/expected

tobias.zuercher's Avatar

tobias.zuercher

01 Oct, 2015 01:03 PM

Hi
i've the following appveyor.yml:

version: 0.3.{build}
branches:
  only:
  - dev
assembly_info:
  patch: true
  file: '**\AssemblyInfo.*'
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}-dev'
before_build:
- cmd: nuget restore
build:
  publish_nuget: true
  verbosity: detailed
artifacts:
- path: '**/Scenarioo*.nupkg'
  name: nupkg
deploy:
- provider: NuGet
  server: https://nuget.org
  api_key:
    secure: xxxxxxxxx
  on:
    branch: dev

For some reason, the AssemblyInformationalVersion doesn't get patched with the -dev suffix. Is this a bug or i have an error in my build setup?

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Oct, 2015 01:48 PM

    Feodor Fitsner's Avatar

    Hi Tobias,

    How does contents of AssemblyInfo file look like after patching?

  2. 2 Posted by tobias.zuercher on 02 Oct, 2015 12:58 PM

    tobias.zuercher's Avatar

    hi Feodor,
    thank you for your fast response!

    I've checked the AssemblyInfo.cs, the AssemblyInformationalVersion wasn't there, OMG! so your patching mechanism didn't apply anything. While it is super obvious now why it wasn't working, i'd love to see a warning in the log.

    Output of the build with the Missing AssemblyInformationalVersion:

    Patching AssemblyInfo
    Patching Scenarioo\Scenarioo\Properties\AssemblyInfo.cs...OK
    Patching Scenarioo\ScenariooTest\ScenariooTest\Properties\AssemblyInfo.cs...OK
    

    Cheers
    tobi

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 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

Recent Discussions

16 Jul, 2019 04:51 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM