C# 更新SpecFlow包后发生诱惑错误

C# 更新SpecFlow包后发生诱惑错误,c#,specflow,allure,C#,Specflow,Allure,我正在使用Specflow、C#和Allure编写测试以生成报告。更新包之后 Specflow Specflow.xUnit SpecFlow.Tools.MsBuild.Generation 从版本3.3.57到3.4.31 我得到这个错误: System.TypeInitializationException : The type initializer for 'Allure.SpecFlowPlugin.AllureTestTracerWrapper' threw an except

我正在使用Specflow、C#和Allure编写测试以生成报告。更新包之后

  • Specflow
  • Specflow.xUnit
  • SpecFlow.Tools.MsBuild.Generation
从版本3.3.573.4.31 我得到这个错误:

System.TypeInitializationException : The type initializer for 'Allure.SpecFlowPlugin.AllureTestTracerWrapper' threw an exception.
---- System.TypeInitializationException : The type initializer for 'Allure.SpecFlowPlugin.PluginHelper' threw an exception.
-------- System.MissingMethodException : Method not found: 'Void TechTalk.SpecFlow.FeatureInfo..ctor(System.Globalization.CultureInfo, System.String, System.String, System.String[])'
你知道我如何解决这个问题吗

感谢您对如何解决此问题提出的任何建议


出现此错误的原因是SpecFlow.Allure尚未与SpecFlow 3.4配合使用。对大于等于3.3.57的NuGet包的依赖关系是错误的

我们在SpecFlow中对3.4进行了与3.3不兼容的更改

这方面的GitHub问题如下:


只要Allure不更新NuGet软件包,您就必须返回SpecFlow 3.3。

SpecFlow.Allure软件包现在已更新为支持SpecFlow 3.4+

您是否对所有项目进行了干净的构建以删除所有中间obj文件?是的,这没有帮助今天发布的新手册可能会有所帮助。寻找例外。见:见链接第2.3段。