tag:help.appveyor.com,2012-11-13:/discussions/problems/3187-assemblyinfo-patching-not-working-properlyexpectedAppVeyor: Discussion 2018-10-19T08:17:29Ztag:help.appveyor.com,2012-11-13:Comment/380769592015-10-01T13:03:52Z2015-10-01T13:03:54ZAssemblyInfo patching not working properly/expected<div><p>Hi<br>
i've the following appveyor.yml:</p>
<pre>
<code>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</code>
</pre>
<p>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?</p></div>tobias.zuerchertag:help.appveyor.com,2012-11-13:Comment/380769592015-10-01T13:48:38Z2015-10-01T13:48:38ZAssemblyInfo patching not working properly/expected<div><p>Hi Tobias,</p>
<p>How does contents of AssemblyInfo file look like after
patching?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/380769592015-10-02T12:58:08Z2015-10-02T12:58:08ZAssemblyInfo patching not working properly/expected<div><p>hi Feodor,<br>
thank you for your fast response!</p>
<p>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.</p>
<p>Output of the build with the Missing
AssemblyInformationalVersion:</p>
<pre>
<code>Patching AssemblyInfo
Patching Scenarioo\Scenarioo\Properties\AssemblyInfo.cs...OK
Patching Scenarioo\ScenariooTest\ScenariooTest\Properties\AssemblyInfo.cs...OK</code>
</pre>
<p>Cheers<br>
tobi</p></div>tobias.zuercher