SpecFlow icon indicating copy to clipboard operation
SpecFlow copied to clipboard

Ambiguous steps displayed in Visual Studio 2022 when Specflow.Autofac higher than 3.9.58 is referenced

Open vikingkom opened this issue 2 years ago • 0 comments

SpecFlow Version

Ambiguous steps displayed in Visual Studio 2022 when Specflow.Autofac higher than 3.9.58 is referenced

Which test runner are you using?

NUnit

Test Runner Version Number

4.2.1

.NET Implementation

.NET 5.0

Project Format of the SpecFlow project

Classic project format using <PackageReference> tags

.feature.cs files are generated using

SpecFlow.Tools.MsBuild.Generation NuGet package

Test Execution Method

Visual Studio Test Explorer

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

No response

Issue Description

Same issue as https://github.com/SpecFlowOSS/SpecFlow.VS/issues/91

I suspect this block because it registers the assembly twice.

Steps to Reproduce

  1. Create an empty NUnit project.
  2. Use Visual Studio 2022 Specflow extension v2022.1.66
  3. PackageReferences: <PackageReference Include="SpecFlow.Autofac" Version="3.9.74" /> <PackageReference Include="SpecFlow.NUnit" Version="3.9.74" />
  4. Add feature file and generate step definitions.

image

Link to Repro Project

https://drive.google.com/file/d/1LRTVHFlPHKGIbwOzJsv_zGFHFocgT5aG/view

vikingkom avatar Jul 04 '22 15:07 vikingkom