SpecFlowOSS / SpecFlow.VS

The next version of the Visual Studio extension for SpecFlow
MIT License
36 stars 10 forks source link

Are Visual Basic Step Definitions supported in the VS2022 Extension #159

Open buzzer70 opened 3 months ago

buzzer70 commented 3 months ago

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

No

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

{ "$schema": "https://specflow.org/specflow-config.json" }

Issue Description

I have a test project written in vb.net. When i generate the Step Definitions for a new scenario in a feature file in VS2022, the generated code is c#. I cannot find anywhere that this can be changed to Visual Basic. The extension in VS 2019 generated Visual Basic code for the same steps. Using VS 2022 17.7.3 and am unable to upgrade to newer version as it messes up my 32-bit Winforms Application

Steps to Reproduce

Create a Net472 VB.Net Winforms project and a VB.Net MSTest project (not Specflow project) using VS2022. Add the references for Specflow.MsTest (3.9.74) to the MSTest project. Add a new Specflow feature file to the MSTest App and add a simple test. Build and then right click on a step and select Define Steps. The code displayed is c#. Do the same (select Generate Step Definitions) in VS 2019 and Visual Basic code is generated

Link to Repository Project

No response