Reputation: 45
I'm working on SpecFlow tests in Visual Studio 2019. The designer file (.cs) doesn't get generated when the feature file is added.
Works on other machines with similar configuration and nuget packages.
The designer file should be generated automatically.
Upvotes: 1
Views: 3762
Reputation: 5825
This is probably happening, because the generation of the code-behind file on saving is not enabled.
In the latest update of the VS Extension of SpecFlow we changed the default to false. The reason for it was, that it is a legacy function and you should switch to MSBuild Generation of the code-behind files.
Documentation for it: https://specflow.org/documentation/Generate-Tests-from-MsBuild/
To enable the feature again, you have to go to the options:
Full disclosure: I am one of the developer of SpecFlow.
Upvotes: 6