Custom build script (“Script” mode)

Abscissa's Avatar


06 Mar, 2018 07:32 AM

A build error message says:

"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."

Additionally, the docs say:

"You may configure your own custom build script (“Script” mode) instead of calling MSBuild or disable build phase altogether."

But I have yet to find any documentation of how to do this in the yaml file.

  1. Support Staff 1 Posted by Ilya Finkelshte... on 06 Mar, 2018 07:39 AM

    Ilya Finkelshteyn's Avatar
  2. 2 Posted by Bobby on 05 Jun, 2018 08:56 PM

    Bobby's Avatar

    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".

  3. Support Staff 3 Posted by Ilya Finkelshte... on 05 Jun, 2018 09:08 PM

    Ilya Finkelshteyn's Avatar

    If your YAML file contains build: section, AppVeyor will work in "MSBuild" mode. Of it does not contain build: section, but contains build_script: section, it will work in a "Script Mode". Also you can explicitly disable "MSBuild" mode with setting build: off.

    Playing with Build tab in UI, saving and then pressing Export YAML should give you a good idea of those settings.

  4. 4 Posted by Abscissa on 07 Jun, 2018 02:35 AM

    Abscissa's Avatar

    Ilya, thanks. That explains it for me. This information really should be added to the documentation, though.

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:48 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac