1

Go to definition in specflow feature file is not working in VS 2022.

New steps (definition less) are not coming in purple, all the steps are white coloured.

Trying to create definition for new steps is resulting in a dialog box with text "All steps have been defined in this file already" from visual studio extension for specflow

  1. I built the solution
  2. I closed and opened the VS
  3. I uninstalled and installed specflow for visual studio 2022
  4. I uninstalled and installed VS
1
  • 1
    Try closing all Visual Studio windows and then deleting the .vs folder at the root directory of the solution. The .vs folder contains transient cached data for Visual Studio. Lots of Visual Studio "weirdness" can be solved by deleting that folder and the rebuilding the solution. Commented Oct 10, 2024 at 19:06

2 Answers 2

0

I've encountered this issue as well. By chance, I deleted the previous StepDefinitions.cs file and then rebuilt the entire project, which resolved the issue.

I also tried many times. Sometimes simply rebuilding the project works, while other times I need to delete the previous StepDefinitions.cs file

My suggestion is to back up your previous StepDefinitions.cs files, then delete all of them, rebuild the project, and restore them afterwards. This might temporarily fix the issue.

Sign up to request clarification or add additional context in comments.

Comments

0

Old Post but I had the same issue. We had to install ReqnRoll to replace spekflow and this stopped working for me at one point. I looked everywhere and event reinstalled reqnroll based on recommendations but that still didn't work.

I finally reinstalled: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-8.0.14-windows-x64-installer and it started working again.

Hopefully this solution helps someone.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.