Generation of VB code #483
-
Hello all, I created a C# .Net project where I am holding hold specflow feature files. The steps of those old feature files were implemented in VB. I also cretaed a VB.Net MSTest prject that will contain the implemented steps in VB. As a first test, I would like to generate steps in VB from the simple calculator exemple. Can reqnroll generates VB code? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes, feature files contained within VB projects will get their code-behind generated as VB. Step definitions can be in any .NET language. Use the the reqnroll.json configuration file to tell Reqnroll which assemblies to include when searching for step definitions. https://docs.reqnroll.net/latest/installation/configuration.html#use-bindings-from-external-projects |
Beta Was this translation helpful? Give feedback.
-
Thank you Chris
…On Thu, Feb 20, 2025 at 4:08 PM Chris Rudolphi ***@***.***> wrote:
Yes, feature files contained within VB projects will get their code-behind
generated as VB.
—
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3I46X6L4QWOOSAQI44IAMT2QY75BAVCNFSM6AAAAABXRTGQ2OVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRWHA2DQMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Daniel Brabant
LinkedIn <https://ca.linkedin.com/in/daniel-brabant-51138a5>
"*When the power of love overcomes the love of power, the world will know
peace*"
*-- Jimi Hendrix*
|
Beta Was this translation helpful? Give feedback.
I apologize for the imprecision in my answer.
Reqnroll does support step definitions written in VB.
Reqnroll supports feature files present in .vbproj projects. (The code generation I mentioned earlier was related to this, as during compilation Reqnroll compiles the gherkin in your feature file into a .net source file (C#, VB, or F#) and includes that in your project)
The Reqnoll Extension for Visual Studio 2022 does not support generation of step definition snippets in any language other than C#.