Unexpected build error on feature files when building my SpecFlow project on a new machine

393 views
Skip to first unread message

Lily Qin

unread,
Oct 1, 2018, 6:19:51 AM10/1/18
to SpecRun
I got a bunch of build errors with my SpecFlow project when moving to a new Windows 10 machine with the latest Visual Studio 2017 installed:

Severity Code Description Project File Line Suppression State
Error CS1503 Argument 2: cannot convert from 'string[]' to 'string' SampleFunctionalTests C:\Src\ECI\Main\Test Sources\Philips.ECI.FunctionalTests\ToolValidation\SampleFunctionalTests\ReadExcel.feature 43 Active
Error CS1501 No overload for method 'OnScenarioStart' takes 1 arguments SampleFunctionalTests C:\Src\ECI\Main\Test Sources\Philips.ECI.FunctionalTests\ToolValidation\SampleFunctionalTests\ReadXml.feature 31 Active
Error CS1503 Argument 2: cannot convert from 'string[]' to 'string' SampleFunctionalTests C:\Src\ECI\Main\Test Sources\Philips.ECI.FunctionalTests\ToolValidation\SampleFunctionalTests\ReadXml.feature 43 Active
Error CS1503 Argument 2: cannot convert from 'string[]' to 'string' SampleFunctionalTests C:\Src\ECI\Main\Test Sources\Philips.ECI.FunctionalTests\ToolValidation\SampleFunctionalTests\WebAPISupport.feature 19 Active
Error CS1503 Argument 2: cannot convert from 'string[]' to 'string' SampleFunctionalTests C:\Src\ECI\Main\Test Sources\Philips.ECI.FunctionalTests\ToolValidation\SampleFunctionalTests\WebAPISupport.feature 24 Active
Error CS1503 Argument 2: cannot convert from 'string[]' to 'string' SampleFunctionalTests C:\Src\ECI\Main\Test Sources\Philips.ECI.FunctionalTests\ToolValidation\SampleFunctionalTests\WebAPISupport.feature 29 Active

This didn't happen on my old Windows 7 machine, VS 2017.  The sources project and features files are all the same.

I searched the existing issues on this post group but didn't find  similar issue reported.

???

Andreas Willich

unread,
Oct 1, 2018, 6:28:50 AM10/1/18
to spe...@googlegroups.com
You need to regenerate you feature code-behind files.

--
You received this message because you are subscribed to the Google Groups "SpecRun" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specrun+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lily Qin

unread,
Oct 5, 2018, 6:17:05 AM10/5/18
to SpecRun
It is resolved. Thanks.
Reply all
Reply to author
Forward
0 new messages