I am trying to build task in Azure pipeline. Observed error :

OneTimeSetUp: BoDi.ObjectContainerException : Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('nunit')

Please let me know if anyone face/fix this issue.

1 Answer 1


Working solution :

  • Add SpecFlow.NUnit package to your project [.csproj file]
<PackageReference Include="SpecFlow.NUnit">

Note - You need to add version similar to version of SpecFlow package you are using in your project

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.