tag:help.appveyor.com,2012-11-13:/discussions/problems/4698-build-command-does-not-support-variablesAppVeyor: Discussion 2018-08-25T02:06:32Ztag:help.appveyor.com,2012-11-13:Comment/399404112016-05-23T02:03:47Z2016-05-23T02:04:17ZBuild command does not support variables<div><p>I was able to satisfy this using powershell instead.</p>
<pre>
<code>$version = -join($env:APPVEYOR_REPO_BRANCH, "-", $env:APPVEYOR_BUILD_NUMBER);
dotnet restore
cd C:\projects\mudengine-core\src
dotnet build
dotnet pack --version-suffix $version</code>
</pre>
<p>Is there no way to handle this using CMD instead of
PowerShell?</p></div>johnathontag:help.appveyor.com,2012-11-13:Comment/399404112016-05-23T02:39:11Z2016-05-23T02:39:11ZBuild command does not support variables<div><p>Sure, in CMD it's just <code>%APPVEYOR_BUILD_NUMBER%</code>.</p></div>Feodor Fitsner