tag:help.appveyor.com,2012-11-13:/discussions/problems/12705-custom-build-script-script-modeAppVeyor: Discussion 2018-10-19T08:18:41Ztag:help.appveyor.com,2012-11-13:Comment/448491092018-03-06T07:32:25Z2018-03-06T07:32:26ZCustom build script (“Script” mode) <div><p>A build error message says:</p>
<p>"The build phase is set to "MSBuild" mode (default), but no Visual Studio project or solution files were found in the root directory. If you are not building Visual Studio project switch build mode to "Script" and provide your custom build command."</p>
<p>Additionally, the docs say:</p>
<p>"You may configure your own custom build script (“Script” mode) instead of calling MSBuild or disable build phase altogether."</p>
<p>But I have yet to find any documentation of how to do this in the yaml file.</p></div>Abscissatag:help.appveyor.com,2012-11-13:Comment/448491092018-03-06T07:39:44Z2018-03-06T07:39:44ZCustom build script (“Script” mode) <div><p>Sure:</p>
<ul>
<li><a href="https://www.appveyor.com/docs/appveyor-yml/">https://www.appveyor.com/docs/appveyor-yml/</a></li>
<li><a href="https://www.appveyor.com/docs/build-configuration/#script-blocks-in-build-configuration">https://www.appveyor.com/docs/build-configuration/#script-blocks-in...</a></li>
</ul>
<p>or even simpler: use UI and then press <code>Export YAML</code> button.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/448491092018-06-05T20:56:49Z2018-06-05T20:56:50ZCustom build script (“Script” mode) <div><p>I could use some more clarification. I don't believe anything in that documentation explains what yml settings "build mode" corresponds to. Is the error message incorrectly worded? The build-configuration documentation enumerates the various flavors of Script blocks, but I don't see anything in there about a "Script Mode".</p></div>Bobbytag:help.appveyor.com,2012-11-13:Comment/448491092018-06-05T21:08:13Z2018-06-05T21:08:13ZCustom build script (“Script” mode) <div><p>If your YAML file contains <code>build:</code> section, AppVeyor will work in "MSBuild" mode. Of it does not contain <code>build:</code> section, but contains <code>build_script:</code> section, it will work in a "Script Mode". Also you can explicitly disable "MSBuild" mode with setting <code>build: off</code>.</p>
<p>Playing with <code>Build</code> tab in UI, saving and then pressing <code>Export YAML</code> should give you a good idea of those settings.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/448491092018-06-07T02:35:13Z2018-06-07T02:35:13ZCustom build script (“Script” mode) <div><p>Ilya, thanks. That explains it for me. This information really should be added to the documentation, though.</p></div>Abscissa