AssemblyInfo patching only use build no

jonas.rapp's Avatar


07 May, 2015 06:27 AM


I have a project that doesn't apply the version parameter as I wish (and as it used to earlier).
I have init ps to compose the version based on current date and build, and this is used correctly when the artifact file is created, but the AssemblyInfo patching sets the file version to e.g. (where 49 is the current build no).

Can you please help me find what is wrong with my settings? :)


version: '{build}'
  - master
configuration: Release
- ps: Update-AppveyorBuild -Version "1.$(Get-Date -format yyyy.M).$env:appveyor_build_number"
  patch: true
  file: '**\AssemblyInfo.*'
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'
  verbosity: minimal
- 7z a %APPVEYOR_BUILD_FOLDER%\FetchXMLBuilder\bin\%CONFIGURATION%\Cinteros.Xrm.*.dll
- appveyor PushArtifact
- provider: Environment
  name: GitHubFXB
- provider: FTP
  protocol: ftp
  username: Jonas
    secure: ************
  folder: rappen/FXB

Console log from build:

Build started
Update-AppveyorBuild -Version "1.$(Get-Date -format yyyy.M).$env:appveyor_build_number"
git clone -q --branch=master git:// C:\projects\fetchxmlbuilder
git checkout -qf 69b963869064f2224467fde5e758239b212c30a4
Patching AssemblyInfo
Patching FetchXmlBuilder\Properties\AssemblyInfo.cs...OK
Patching XmlEditorUtils\Properties\AssemblyInfo.cs...OK
"C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" "FetchXmlBuilder.sln" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
Microsoft (R) Build Engine version 12.0.31101.0
[Microsoft .NET Framework, version 4.0.30319.34209]
Copyright (C) Microsoft Corporation. All rights reserved.
   XmlEditorUtils -> C:\projects\fetchxmlbuilder\XmlEditorUtils\bin\Release\Cinteros.Xrm.XmlEditorUtils.dll
FetchXmlBuilder.cs(1755,17): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [C:\projects\fetchxmlbuilder\FetchXmlBuilder\FetchXmlBuilder.csproj]
  FetchXmlBuilder -> C:\projects\fetchxmlbuilder\FetchXmlBuilder\bin\Release\Cinteros.Xrm.FetchXmlBuilder.dll
7z a %APPVEYOR_BUILD_FOLDER%\FetchXMLBuilder\bin\%CONFIGURATION%\Cinteros.Xrm.*.dll
7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
Creating archive
Compressing  Cinteros.Xrm.FetchXmlBuilder.dll
Compressing  Cinteros.Xrm.XmlEditorUtils.dll
Everything is Ok
appveyor PushArtifact
Discovering tests...OK
Deploying using Environment provider
Started deployment to GitHubFXB environment
Deploying using FTP provider
Uploading artifact "" to FTP server "" as "rappen/FXB/"
Uploading "rappen/FXB/"...OK
Build success
  1. Support Staff 1 Posted by Feodor Fitsner on 07 May, 2015 04:32 PM

    Feodor Fitsner's Avatar

    Will take a look.

  2. Support Staff 2 Posted by Feodor Fitsner on 07 May, 2015 05:44 PM

    Feodor Fitsner's Avatar

    Will fix that by the next release. For now you can workaround that with the following settings:

      patch: true
      file: '**\AssemblyInfo.*'
      assembly_version: '$(appveyor_build_version)'
      assembly_file_version: '$(appveyor_build_version)'
      assembly_informational_version: '$(appveyor_build_version)'
  3. 3 Posted by jonas.rapp on 07 May, 2015 07:26 PM

    jonas.rapp's Avatar

    Ok, so is it as I suspect something that has broken?
    I am quite certain that I have not changed my settings, and it used to work...

    But I will test your code. Thank you :)
    Will I be notified when the fix is released?

  4. Support Staff 4 Posted by Feodor Fitsner on 07 May, 2015 07:39 PM

    Feodor Fitsner's Avatar

    Subscribe to "AppVeyor Updates" at to receive notification when updates deployed.

    I don't think there is regression as it was never implemented to work like that (unless I'm missing something and you can send me a proof link to a past working build :)

  5. 5 Posted by jonas.rapp on 07 May, 2015 07:50 PM

    jonas.rapp's Avatar

    You actually gave me the solution to do it the way I do :)
    See thread:

    Maybe I just assumed it would work, as the "visible" version that was set (mainly the zip file name) and never checked the actual file version of compiled binaries.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

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

Keyboard shortcuts


? 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