Build multiple projects or exclude project from solution

damiaan's Avatar

damiaan

26 Jan, 2019 04:30 PM

Hi,

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:

build:
  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:

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

Anyone an idea?

Kind regards
Damiaan

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

    Ilya.

  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:
    https://github.com/roodfluweel/csharp-sdk/blob/master/appveyor.yml

  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

Generic

? 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

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM