The .sln
file in my GitHub repository has two projects -- a class library project, and a tests project. I only want AppVeyor to build the library project, because the tests project requires the Microsoft Access database engine to be installed.
I am using appveyor.yaml
.
How can I do this?
There are a number of possible options here.
To disable tests, set the following in appveyor.yml
:
tests: off
Or create a special build configuration (via the Visual Studio Configuration Manager...), say ReleaseCI
, and specify the configuration in appveyor.yml
:
configuration: ReleaseCI
Another option is to create multiple solution files; the UI for switching solutions is simpler (Solution Explorer -> Switch views...) than the UI for switching build configurations. To specify which .sln
file should be passed to MSBuild:
build:
project: MySolution.sln