tag:help.appveyor.com,2012-11-13:/discussions/questions/1423-way-to-reference-the-assembly-version-in-a-deploymentAppVeyor: Discussion 2018-08-25T01:57:28Ztag:help.appveyor.com,2012-11-13:Comment/372497942015-06-30T00:46:37Z2015-06-30T00:46:37ZWay to reference the assembly version in a deployment<div><p>There is no such functionality built in, but as an idea you can
have a simple PowerShell line using Assembly class to load
assembly and read its version.</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/372497942015-06-30T14:15:34Z2015-06-30T14:15:34ZWay to reference the assembly version in a deployment<div><p>Thanks for pointing me in the right direction. This seems to
cover it pretty well <a href="http://stackoverflow.com/questions/3267009/get-file-version-and-assembly-version-of-dll-files-in-the-current-directory-and">
http://stackoverflow.com/questions/3267009/get-file-version-and-ass...</a>
.... and then this discussion seems to cover the rest <a href="http://help.appveyor.com/discussions/questions/1353-semantic-versioning">
http://help.appveyor.com/discussions/questions/1353-semantic-versio...</a>
.</p></div>christag:help.appveyor.com,2012-11-13:Comment/372497942015-06-30T14:45:10Z2015-06-30T14:45:10ZWay to reference the assembly version in a deployment<div><p>my final after-build script for those interested:</p>
<pre>
<code>$exists = Test-Path "src/myProject/bin/Release/myProject.dll"
If($exists)
{
$aav = ls src/myProject/bin/Release/myProject.dll | % versioninfo
Set-AppveyorBuildVariable -Name "my_assembly_version" -Value $aav.ProductVersion
}</code>
</pre>
<p>And then simply reference the
<code>$(my_assembly_version)</code> variable in both the Tag and
Release name text boxes. Thanks again for the help!</p></div>christag:help.appveyor.com,2012-11-13:Comment/372497942015-06-30T15:00:21Z2015-06-30T15:00:21ZWay to reference the assembly version in a deployment<div><p>Elegant solution! Thanks for sharing it.</p></div>Feodor Fitsner