2
votes

I am trying to build a solution with SpecFlow tests in it. These have built and run previously. I am using:

  • Visual Studio 15.3.2
  • VS Extension: SpecFlow for VS2017 version 2017.1.6
  • NuGet package: SpecFlow 2.2.0
  • NuGet package: NUnit 3.7.1

I changed one specflow definition file and now I get: #error Generation error: Object reference not set to an instance of an object.

Any other specflow definition file now fails with the same message if touched. The only recent change to my system was an update to VS which had just come out of RC

3
I have the same problem after selecting "Run Specflow Scenarios" on feature file. - Skorunka FrantiĊĦek

3 Answers

3
votes

Downgrading to SpecFlow 2.1.0 fixed the issue

0
votes

It looks like the problem faded away with the version 2.3.0

0
votes

Go to: Tools -> Options -> SpecFlow -> General And in there set 'Enable project-wide-analysis' to True. It worked for me.