tag:help.appveyor.com,2012-11-13:/discussions/problems/472-project-refuses-to-build-as-releaseAppVeyor: Discussion 2018-10-19T08:16:37Ztag:help.appveyor.com,2012-11-13:Comment/335354782014-06-25T00:46:45Z2014-06-25T00:46:45ZProject refuses to build as release<div><p>Hi Richard,</p>
<p>It passes <code>$(configuration)</code> through environment
variable when it's set on Build tab of project settings. If the
property is not defined on msbuild command line then msbuild is
looking for environment variable with the same name first.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/335354782014-06-25T01:18:39Z2014-06-25T01:18:39ZProject refuses to build as release<div><p>Hi Feodor,</p>
<p>That sounds logical, but it doesn't seem to apply in
practise:</p>
<p>a) I have explicitly specified a Configuration in Appveyor
Settings, so I would expect it to be explicitly passed to
msbuild</p>
<p>b) If it only sets an environment variable, it should be picked
up by my solution (as you say), but it's not.</p>
<p>The project in question is public. Can you take a look? <a href=
"https://ci.appveyor.com/project/richardszalay/mockhttp">https://ci.appveyor.com/project/richardszalay/mockhttp</a></p>
<p>Cheers,<br>
Richard</p></div>richardtag:help.appveyor.com,2012-11-13:Comment/335354782014-06-25T01:23:33Z2014-06-25T01:23:33ZProject refuses to build as release<div><p>I see. You should add "configuration" into appveyor.yml, UI
setting is ignored when yml is used.</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/335354782014-06-25T01:28:34Z2014-06-25T01:28:34ZProject refuses to build as release<div><p>That would explain a lot. Thanks!</p></div>richard