Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get SpecFlow to work in Visual Studio 2010 no matter what I do!!!11

When I add a reference in a Visual Studio 2010 project via NuGet for Specflow 1.9, I cannot add any features no matter what I do. I've restarted VS, restarted my PC, created new projects, etc. Nothing I do allows me to actually use SpecFlow. I.e. when I go to Project > Add New Item, I do not see any SpecFlow files in the Add New Item dialog.

It is worth noting that I do not have the "ItemTemplates" directory that should supposedly exist in the "C:\Program Files (x86)\TechTalk\SpecFlow\" directory.

It is also worth noting that I had Visual Studio 2012 Web Express installed, but I'm not sure why that would prevent feature files from showing up under Add > New Item in a VS 2010 project!

Any help is much appreciated.

like image 620
Adam Avatar asked Mar 26 '13 16:03

Adam


1 Answers

You need to also install SpecFlow via the Visual Studio Extension Manager.

Tools > Extension Manager

Installing via Nuget only gives you the reference to the SpecFlow dlls - it doesn't install the files for feature templates etc into Visual Studio.

like image 104
ngm Avatar answered Sep 18 '22 17:09

ngm