Reputation: 15375
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?
Upvotes: 0
Views: 127
Reputation: 15375
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
Upvotes: 0
Reputation: 168
You could switch from automatic msbuild
mode to script
mode, by adding a build_script
section to your yaml config file. This might look something like this...
build_script:
- msbuild StringAsSql/StringAsSql.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
It's the same command AppVeyor would run automatically on your solution file.
Upvotes: 1