SpecFlowOSS / SpecFlow.VS

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

Fields of specific type break the extension. #154

Open algirdasN opened 6 months ago

algirdasN commented 6 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

N/A

Issue Description

Just by having a field of type System.Windows.Forms.ScreenOrientation anywhere in the project, it will break the SpecFlow extension with error:

The project bindings (e.g. step definitions) could not be discovered. Navigation, step completion and other features are disabled.

This might be related to other bugs here, however here I have a reliable way to trigger it. You may look at linked repository to see it in action.

Visual Studio - 17.7.7 SpecFlow Extension - 2022.1.91.26832

image

image

Steps to Reproduce

  1. Enable Windows forms in the project file (see repository for how-to).
  2. Create a field with type ScreenOrientation in you project.
  3. Rebuild the project (Ctrl+B).

Link to Repository Project

https://github.com/algirdasN/SpecFlowExtensionBug