Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpecFlow.NUnit via Nuget: Missing reference to nunit.core

I just installed the 'specflow.nunit' package via nuget, but the project containing the specs want compile anymore, because of the SpecFlowNUnitExtension class that is added to the project is missing references to nunit.core (more specifically the 'NUnit.Core' and 'NUnit.Core.Extensibility' namespaces can't be found). Anyone else had the same issue? Have you managed to solve it?

like image 232
Kjetil Klaussen Avatar asked May 08 '12 20:05

Kjetil Klaussen


3 Answers

I fixed it by installing the NUnitTestAdapter Nuget package.

like image 115
Morten Christiansen Avatar answered Oct 23 '22 21:10

Morten Christiansen


Okei, seems I found away to solve it; The dll's needed can be downloaded from http://www.nunit.org/index.php?p=download. Download the 'bin'-version, extract the zip archive, and inside the folder 'lib' there are 2 assemblies that's needed by SpecFlowNUnitExtension: - nunit.core.dll - nunit.core.interfaces.dll

Add a references to these two dll's and project compiles.

(a bit awkward though; shouldn't these assemblies be bundled with the specflow.nunit package?)

like image 40
Kjetil Klaussen Avatar answered Oct 23 '22 21:10

Kjetil Klaussen


Our fix was to delete SpecFlowNUnitExtension.cs from our project that was added during the install of the SpecFlow.NUnit NuGet package. According to the comments in the top of the file, it is only needed if you are using one of the nunit.console runners which we are not using.

like image 1
Dude0001 Avatar answered Oct 23 '22 21:10

Dude0001