tag:help.appveyor.com,2012-11-13:/discussions/questions/1448-can-we-use-a-variable-name-for-the-build-project-nameAppVeyor: Discussion 2018-10-19T08:17:18Ztag:help.appveyor.com,2012-11-13:Comment/373404682015-07-09T05:56:51Z2015-07-09T05:56:51ZCan we use a variable name for the build project name?<div><p>Is it possible to do this?</p>
<pre>
<code>environment:
solutionFile: Foo.sln
cache: packages
before_build:
- nuget restore %solutionFile%
build:
project: %solutionFile%</code>
</pre>
<p>see how the project value is the variable
<code>%solutionFile%</code> ? Can this be done, yet?</p></div>Pure Krometag:help.appveyor.com,2012-11-13:Comment/373404682015-07-09T06:42:37Z2015-07-09T06:44:28ZCan we use a variable name for the build project name?<div><p>Yes we can! - found it!</p>
<p>ref: <a href="https://github.com/appveyor/ci/issues/131">https://github.com/appveyor/ci/issues/131</a></p>
<p>and <a href="http://www.appveyor.com/updates/2015/03/06">http://www.appveyor.com/updates/2015/03/06</a></p>
<p>eg. (notice the 2 different ways we use variables, based on
which part of the build process is using them...)</p>
<pre>
<code>environment:
solutionFile: Foo.sln
before_build:
- nuget restore %solutionFile%
build:
project: $(solutionFile)</code>
</pre></div>Pure Krome