Build multiple projects or exclude project from solution

damiaan's Avatar


26 Jan, 2019 04:30 PM


I am trying to build 2 specific projects from a solution. The solution has

  • a shared library
  • a unittest project
  • a windows forms project

I don't want to waste processing power on the windows forms project. It is for local debugging anyway. I can't exclude it from the buildconfiguration.

So, how can I add multiple projects (or exclude projects) on the build settings?

I have currently this in my opensource YML file:

  project: PAYNLSDK\PayNLSdk.csproj

I would guess that there is an "exclude" or list option. But I can not find any documentation or discussion. To have something like this:

  - project: PAYNLSDK\PayNLSdk.csproj
  - project: PayNLSdk.Tests\PayNLSdk.csproj

Anyone an idea?

Kind regards

  1. Support Staff 1 Posted by Ilya Finkelshte... on 27 Jan, 2019 07:56 AM

    Ilya Finkelshteyn's Avatar

    Hi Damiaan,

    Create new configuration and include only required projects in this configuration. Then use AppVeyor builds configuration settings to built this configuration. If you use YAML, it should look like configuration: MyConfig. If you use UI, you can set it in MSBuild tab in Build menu.


  2. 2 Posted by damiaan on 27 Jan, 2019 05:47 PM

    damiaan's Avatar

    Of course! Thanks a lot Ilya!

    I added an build configuration in Visual studio called "appVeyor" and added

    configuration: AppVeyor

    to my YAML.

    For those getting back to this thread, it's an open source project. You can see how we are using GitVersion and (pure) YAML along with a few unit tests here:

  3. Owen McDonnell closed this discussion on 06 Feb, 2019 05:49 PM.

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