How to exclude/ignore a project(Dot Net) while configuring a Jenkins job

1.9k Views Asked by At

To build the solution using Jenkins, the physical path of "MSBuild.exe" & ".sln" file has been configured correctly.

All the projects built successfully except MSTEST project.

The reason behind this is 'the MSTEST project needs Visual-Studio to be installed'. Now, either I need to find a way to build the MSTEST project without installing Visual-Studio, OR I need to exclude the MSTEST project while configuring 'Jenkins job' as it needs Visual-Studio to be installed.

Kindly advise.

1

There are 1 best solutions below

1
wimh On

By default your project has a Release and a Debug configuration. (See Understanding Build Configurations). You can add a new configuration and Call it ReleaseNoMstest. Copy the settings from the Release configuration, and then exclude the MsTest project. (See also How to: Exclude Projects from a Build). Finally, in jenkins select the ReleaseNoMstest for building.