Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
buzzer70 opened this issue Apr 10, 2024 · 0 comments
Open

Comments

@buzzer70
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant