Open sauravkumarsahoo opened 2 years ago
My SpecFlow project runs green in VS 2019, but in VS 2022 I have the same issue. I manually installed older SpecFlow versions but that didn't solve it for me.
I plan to fix this in the next release. Please help me to reproduce this issue locally on my laptop. The best would be if you can create and share a repo where the issue exists. Or I can give you write access to our investigation repo, where you can commit a sample. If this doesn't work, then I need the csproj content of your test project
Great, thanks! For me it was enough to build the project and open a feature file, to see the error. Here is a simple example where it was enough doing this: https://github.com/klarahovstadius/TestAutomationCsharp/tree/master/TestAutomation
Is there any update regarding this issue? I am also experiencing this problem in my project.
In the past few weeks I have worked on a refactored connector. We want to publish it in the upcomming weeks, but here is a beta version if you want to test: https://github.com/SpecFlowOSS/Investigation/blob/main/SpecFlow.VisualStudio.Package.vsix
HI
Any Updates on the Above issue.
SpecFlow Extension:
SpecFlow for Visual Studio 2022
version2021.4.5.18546
SpecFlow NuGet Version:3.9.40
Project Dotnet Version:5
DotNet Info:specflow.json
NamespaceOfAssembly
has the name of the actual assembly.Warning: AndDiscoveryProviderSucceed: Error during binding discovery. Command executed: C:\Users\user\source\repos\testautomation\Tests\Regression\bin\Debug\net5.0> C:\Program Files\dotnet\dotnet.exe exec c:\users\user\appdata\local\microsoft\visualstudio\17.0_1dc4e21b\extensions\524bqjox.54w\Connectors\V3-net6.0\specflow-vs.dll discovery C:\Users\user\source\repos\testautomation\Tests\Regression\bin\Debug\net5.0\Regression.dll C:\Users\user\source\repos\testautomation\Tests\Regression\specflow.json Exit code: 4 Message: Exception in:SpecFlow.VisualStudio.SpecFlowConnector.Discovery.V38.SpecFlowV38Discoverer Error: Exception has been thrown by the target of an invocation. -> Unable to load one or more of the requested types. Could not load type 'Microsoft.Extensions.Hosting.IHostApplicationLifetime' from assembly 'Microsoft.Extensions.Hosting.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Exception: System.Reflection.TargetInvocationException->System.Reflection.ReflectionTypeLoadException
Warning: AndDiscoveryProviderSucceed: The project bindings (e.g. step definitions) could not be discovered. Navigation, step completion and other features are disabled.
Warning: AndDiscoveryProviderSucceed: Error during binding discovery. Command executed: C:\Users\G86484\source\repos\testautomation\suwp-testautomation-iquote\Tests\Regression\bin\Debug\net5.0> C:\Program Files\dotnet\dotnet.exe exec c:\users\g86484\appdata\local\microsoft\visualstudio\17.0_1dc4e21b\extensions\524bqjox.54w\Connectors\V3-net6.0\specflow-vs.dll discovery C:\Users\G86484\source\repos\testautomation\Tests\Regression\bin\Debug\net5.0\Regression.dll C:\Users\G86484\source\repos\testautomation\Tests\Regression\specflow.json Exit code: 4 Message: Exception in:SpecFlow.VisualStudio.SpecFlowConnector.Discovery.V38.SpecFlowV38Discoverer Error: Exception has been thrown by the target of an invocation. -> Unable to load one or more of the requested types. Could not load type 'Microsoft.Extensions.Hosting.IHostApplicationLifetime' from assembly 'Microsoft.Extensions.Hosting.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Exception: System.Reflection.TargetInvocationException->System.Reflection.ReflectionTypeLoadException
Warning: AndDiscoveryProviderSucceed: The project bindings (e.g. step definitions) could not be discovered. Navigation, step completion and other features are disabled.