naazneen3264
naazneen3264

Reputation: 315

Could not find SpecFlow Feature Files option in Add New Item window - VS20019

I am new to visual studio and specflow. I have visual studio 2019 in my machine and I have followed all steps and successfully installed specflow through manage nuget package . I cannot add a feature file from right click on proj> Add new item. I cannot see specflow . Can anyone help me on how to add feature files?

Upvotes: 8

Views: 9382

Answers (3)

Atul
Atul

Reputation: 925

Please perform below steps:

  1. Click on Extensions -> Manage Extensions

enter image description here

  1. Click on 'Online' and enter specflow in search box

enter image description here

  1. Click on Download button
  2. Restart the Visual Studio (this step is mandatory to install the Extensions after downloading)
  3. After successful installation you can see the Specflow options

enter image description here

Upvotes: 1

naazneen3264
naazneen3264

Reputation: 315

I have installed through extensions->visual studio marketplace and downloaded . Attached the screenshot. enter image description here Still I cannot add a feature file from right click on proj> Add new item.

Upvotes: 3

MDBarbier
MDBarbier

Reputation: 379

Have you also installed the Visual Studio Extension for SpecFlow? I think that is what provides the feature file listing in Add New Item.

To install go to Tools > Extensions and Updates > Online then search for Specflow:

enter image description here

Note in my screenshot it is already installed but there should be a download button when you hightlight specflow in the list like e.g.

enter image description here

Once you've clicked Download and marked it for install close Visual Studio, let it install, and then try again - you should then see the templates.

Upvotes: 10

Related Questions