Open RemyBoyer opened 2 years ago
Adding the NuGet package System.Text.Json 6.0.5 to the test project resolved this issue for me.
The DefaultIgnoreCondition
property was added to System.Text.Json 5.
Source: https://devblogs.microsoft.com/dotnet/whats-next-for-system-text-json/
Used Visual Studio
Visual Studio 2022
Are the latest Visual Studio updates installed?
Yes
SpecFlow Section in app.config or content of specflow.json
empty
Issue Description
Hello,
I'm running into issues with my main specflow project. I'm having both an error on the generic connector, and the "legacy" one, whatever this one is.
I have not been able to provide repro steps for the legacy connector (since I can't share my project), but I was able to do so for the Generic one, with minimal steps.
From what I understand, adding
Azure.Identity
addsSystem.Memory/4.5.4
(the nuget package) as dependency, and the connector loads this lib instead of the net6.0 one. Then later one it fails while trying to do System.Text.Json (de)serializations, sinceSpan
aren't available.This is the output from Visual Studio:
Here's the output when I launch the connector manually:
My
dotnet --info
, if needed:I can provide a repo if needed.
Steps to Reproduce
Use this csproj:
Add a feature. Compile.
The command I'm using to reproduce the issue:
& "C:\Program Files\dotnet\dotnet.exe" exec C:\Users\RemyBOYER\AppData\Local\Microsoft\VisualStudio\17.0_bbb23af8\Extensions\ifvzfqss.3pw\Connectors\Generic-net6.0\specflow-vs.dll discovery C:\Users\RemyBOYER\source\repos\ConsoleApp2\TestProject1\bin\Debug\net6.0\TestProject1.dll
Link to Repository Project
No response