Specflow error: Force regenerate steps possible?

SpecFlow creates a .cache file in your Temp folder that holds these bindings to speed things up. If that file gets out of whack, you can delete it:

  1. Exit Visual Studio.
  2. Open Windows Explorer.
  3. In the address bar, type %TEMP% and hit Enter to go to your temp folder.
  4. Find the files whose names start with “specflow-stepmap-YourProjectName” with a .cache extension.
  5. Delete those files.
  6. Start Visual Studio again.

If you do this, it’ll take a little time for SpecFlow to regenerate the bindings. Until this is done, if you right-click on a step and select “Go To Step Definition”, Visual Studio will reply “Step bindings are still being analyzed. Please wait.”

I most commonly use this for the opposite case, where SpecFlow shows that nothing is bound even though the steps exist. But I think it’s likely to work for your case as well.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)