SpecFlow.VS icon indicating copy to clipboard operation
SpecFlow.VS copied to clipboard

Items missing from the SpecFlow Add Items context menu

Open pjholland opened this issue 2 years ago • 10 comments

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

SpecFlow Section in app.config or content of specflow.json

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

  <dependentAssembly>

    <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />

    <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />

  </dependentAssembly>

  <dependentAssembly>

    <assemblyIdentity name="TechTalk.SpecFlow" publicKeyToken="0778194805d6db41" culture="neutral" />

    <bindingRedirect oldVersion="0.0.0.0-3.9.0.0" newVersion="3.9.0.0" />

  </dependentAssembly>

</assemblyBinding>

Issue Description

When trying to add a new item - in this case a new step definition.

The context menu only contains the ability to add a Feature file, Specflow config file, SpecFlow hooks file. This is in contrast to the 2019 version which has the full selectioon of options including the different language options

Steps to Reproduce

Right click on project solution and add new item

Select Specflow from the menu

Note there are on the three options available in the menu

Link to Repository Project

No response

pjholland avatar Apr 12 '22 12:04 pjholland

We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?

SabotageAndi avatar Apr 13 '22 10:04 SabotageAndi

The steps file is not there I have a similar experience,

John01111 avatar Apr 16 '22 10:04 John01111

The steps file is not there I have a similar experience,

John01111 avatar Apr 16 '22 10:04 John01111

We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?

"Step Definitions" could be useful.

tariful-islam98 avatar May 02 '22 09:05 tariful-islam98

As adding Item Templates is a good issue to start contributing to, here is some information on how to do it.

  • The Item Templates are located here: https://github.com/SpecFlowOSS/SpecFlow.VS/tree/main/SpecFlow.VisualStudio.ItemTemplates
  • Every Item Template has its own folder.
  • The old Item Templates are here: https://github.com/SpecFlowOSS/SpecFlow.VisualStudio/tree/master/ItemTemplates
  • The .vstemplate files configure the template
  • The .cs/.vb/.fs files are the content of the new file

So if anybody of you @tariful-islam98, @John01111, @pjholland would send me a PR to add the Item Templates, I am happy to review them.

SabotageAndi avatar May 05 '22 08:05 SabotageAndi

@SabotageAndi I'll try and add them, but havent done something like that before.

marcosikkens avatar Jun 14 '22 15:06 marcosikkens

Pull request created with the changes:

https://github.com/SpecFlowOSS/SpecFlow.VS/pull/84

marcosikkens avatar Jun 19 '22 12:06 marcosikkens

The 2019 option has nine items in the list - the main item missing in 2022 is the SpecFlow Step Definition template On Wednesday, 13 April 2022, 11:04:05 BST, Andreas Willich @.***> wrote:

We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

pjholland avatar Oct 11 '22 09:10 pjholland

The Dutch an German template are missing from the list.

Marco

Op di 11 okt. 2022 11:27 schreef Paul Holland @.***>:

The 2019 option has nine items in the list - the main item missing in 2022 is the SpecFlow Step Definition template On Wednesday, 13 April 2022, 11:04:05 BST, Andreas Willich @.***> wrote:

We only added the three item templates to the VS 2022 version. Which of the old item templates are you missing?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/SpecFlowOSS/SpecFlow.VS/issues/73#issuecomment-1274396761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJM3ZHPXKUPUF7WLOTLT5LWCUXG5ANCNFSM5THGUO2Q . You are receiving this because you commented.Message ID: @.***>

marcosikkens avatar Oct 11 '22 13:10 marcosikkens

We need the "new Steps" one.

gabcen avatar Oct 27 '22 15:10 gabcen