Tests are not found when using the xunit.runner.msbuild in TeamCity - adamralph/xbehave.net GitHub Wiki

This issue affects 2.x versions only. It does not affect versions 1.x and below.

It has been reported that, when using the xunit.runner.msbuild package, tests written using xBehave.net 2.0 and above are sometimes not found when building on TeamCity.

The solution for this is to include an explicit build step to restore the NuGet packages for your solution before building the solution itself.