Build multiple projects or exclude project from solution
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
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
1 Posted by Ilya Finkelshte... on 27 Jan, 2019 07:56 AM
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 inMSBuild
tab inBuild
menu.Ilya.
2 Posted by damiaan on 27 Jan, 2019 05:47 PM
Of course! Thanks a lot Ilya!
I added an build configuration in Visual studio called "appVeyor" and added
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
Owen McDonnell closed this discussion on 06 Feb, 2019 05:49 PM.