更新时间:2021-10-16 22:43:10
我按照https://github.com/nunit/nunit-vs-adapter/issues/125中的建议将解决方案中的所有Nuget包升级到最新版本,从而修复了该问题。我不知道为什么这就解决了它,但它确实解决了。
升级Nuget包后,我收到错误:
System.IO.FileLoadException : Could not load file or assembly 'nunit.framework, Version=3.13.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
通过以下https://github.com/SpecFlowOSS/SpecFlow/issues/2387处的建议修复了此问题: