3

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.

Pranav Kumar
  • 249
  • 1
  • 5
  • 16

1 Answers1

1

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.

wimh
  • 15,072
  • 6
  • 47
  • 98
  • Thanks for your advice @wimh.. Unchecking the project in configuration-manager is NOT working for me. KIndly advise, if I need to do anything else. I followed the following steps: 1) created a release-mode as suggested and unchecked the project(MSTest) in configuration-manager. 2) then cleaned and re-built the solution. But the solution-file still contains the reference of 'MSTest' project. It works only when I exclude the project. – Pranav Kumar Dec 27 '17 at 11:38