Skip to main content

System.TypeLoadException: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender'

Answered

Comments

13 comments

  • Official comment
    Andreas Willich

    SpecFlow+ Runner 3.9.31 is released to NuGet.org, which works again with SpecFlow 3.9.40.

  • Jordan Western

    Lluis Bonet,

    You're not the first to raise this, we are working on it :)

    Will let you know once we have resolved the issue.

    0
  • Lluis Bonet

    Jordan Western,

    Thanks for your response, I will be waiting for this update thanks!

    0
  • Brett Roberts

    I too, am experiencing this after upgrading my  NuGets to:

    SpecFlow 3.9.40
    SpecFlow.Tools.MsBuild.Generation 3.9.40
    SpecRun.SpecFlow 3.9.7

     

    Now I cannot run my tests, can you suggest a downgrade path that will get me working again?

    Thanks

    0
  • Brett Roberts

    Downgraded my nugets as below

    SpecRun.SpecFlow 3.8.12
    SpecFlow.Tools.MsBuild.Generation 3.8.14
    SpecFlow 3.9.14
    SpecFlow.Plus.LivingDocPlugin uninstalled as I dont use it that often

     

    Things seem to work now. 

    Lesson learned.

     

    0
  • Jordan Western

    Hey Brett Roberts, Lluis Bonet

    As you mention the downgrade will work, it is version 3.9.40 that does not have the ICucumberMessageSender.

    version 3.9.22 should be the last version that works until we fix this.

    0
  • Lluis Bonet

    Hi Jordan Western,

    thanks for your response indeed this downgrade solved the issue, I'll wait for the next specflow version.

    0
  • Svitlana Plotnikova

    Hello 

    this issue is already 1 year old. Is there any fix for it besides downgrade?

    Best regards

    Svetlana

    0
  • Lluis Bonet

    Hi Svitlana Plotnikova

    since they stop maintaining the Speclflow Runner I switch to xUnit and everything works smoothly in the last version  

    0
  • Svitlana Plotnikova

    Hi Lluis,

    thank you for your response.

    I just use Specflow SpecFlow.Internal.Json, Specflow.Tools.MsBuild.Generation, Specflow.MSTest

    So it means I should replace SpecFlow.MSTest with Specflow.xUnit?

    Best regards

    Svetlana

    0
  • Lluis Bonet

    Svitlana Plotnikova here you will find documentation that might help you https://docs.specflow.org/projects/specflow/en/latest/Integrations/MsTest.html

    0
  • Svitlana Plotnikova

    Yes I'm referencing these packages, but still..., Is there something I might be missing?

    0
  • Lluis Bonet

    I have never used MS test, I use these nugets:

    <PackageReference Include="SpecFlow" Version="3.9.74" />
    <PackageReference Include="SpecFlow.Assist.Dynamic" Version="1.4.2" />
    <PackageReference Include="SpecFlow.Contrib.Variants" Version="3.9.74" />
    <PackageReference Include="SpecFlow.Plus.LivingDocPlugin" Version="3.9.57" />
    <PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.9.74" />
    <PackageReference Include="SpecFlow.xUnit" Version="3.9.74" />
    <PackageReference Include="xunit" Version="2.4.2" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
    0

Please sign in to leave a comment.

Powered by Zendesk