I have （VS2019, .net framework 4.7.2，specflow3.4.3, NUnit3) I have Nuget package SpecFlow.Plus.LivingDocPlugin, then the automation script works OK for my project in local machine. After I upload the package, package.config, csproj from P4V, I trigger the case in teamcity. However the case build success, but fail perform in teamcity agent. There shows error 'System.IO.FileLoadException : Could not load file or assembly 'TechTalk.SpecFlow, Version=22.214.171.124, Culture=neutral, PublicKeyToken=0778194805d6db41' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
It works OK in my local machine. After I delete the SpecFlow.Plus.LivingDocPlugin package, and submit to teamcity agent, there shows same error. After I delete the specflow.nunit, nunit3, specflow.tools.msbuild.generation, and reinstalled in agent machine, there shows same error.
User contributions licensed under CC BY-SA 3.0