Specflow GenerateFeatureFileCodeBehindTask error
In the past few months I have been contacted by a number of readers who notified me that the code for my A simple SpecFlow 3 setup in Rider blog post was broken. I took me a while, but I've finally taken the time to fix it.
Some time ago I already looked at it and I saw that with the upgrade to dotnet core 3 there was a breaking change with SpecFlow
.feature.cs file generation. Due to a change in the MSBuild pipeline, the files were not generating correctly. The following error was shown during the build of the solution.
The "GenerateFeatureFileCodeBehindTask" task failed unexpectedly.
Fortunately, upgrading to the latest version of all the packages fixed all the errors. Thank you SpecFlow team!
The SpecFlowSetup project on GitHub has been updated and should work again.