I can't get StepDefinitionReport to work

635 views
Skip to first unread message

Marcus Hammarberg

unread,
Dec 15, 2010, 10:19:03 AM12/15/10
to SpecFlow
Hello,

just found this little gem (stepdefinitionreport) of a switch for the
SpecFlow.exe. But for the life of me I cannot get it to work.

Here is a little transcript from my command prompt;

======
Directory of C:\Dev\DemoSpecFlowTags\DemoSpecFlowTags

2010-12-15 07:44 <DIR> .
2010-12-15 07:44 <DIR> ..
2010-12-14 09:26 <DIR> bin
2010-12-15 07:47 3 460 DemoSpecFlowTags.csproj
2010-12-14 09:23 <DIR> obj
2010-12-14 09:23 <DIR> Properties
2010-12-14 20:54 1 018 TagDemo.feature
2010-12-14 20:54 6 133 TagDemo.feature.cs
2010-12-14 20:54 3 622 TagemonstrationSteps.cs
4 File(s) 14 233 bytes
5 Dir(s) 4 418 322 432 bytes free

C:\Dev\DemoSpecFlowTags\DemoSpecFlowTags>"%ProgramFiles(x86)%\TechTalk
\SpecFlow\SpecFlow.exe" stepdefinitionreport DemoSpecFlowTags.csproj
Could not load file or assembly 'DemoSpecFlowTags' or one of its
dependencies. The system cannot find the file specified.

======

What am I doing wrong?

Gáspár Nagy

unread,
Dec 16, 2010, 9:25:03 AM12/16/10
to SpecFlow
Hi,

The step definition report needs a compiled (it loads the compiled
assembly to discover the bindings). By default it loads it from bin/
Debug, but you can also specify this explicitly.

Br,
Gaspar

Marcus Hammarberg

unread,
Dec 16, 2010, 2:36:15 PM12/16/10
to SpecFlow
Yup - I found it...

Not surprisingly it was something I did (or maybe not).

My Spec-assembly was in .NET 4.0 and hence could not be loaded by the
SpecFlow.exe-project that is in .NET Framework 3.5.

I changed it now in a local copy and it works just fine.

Is there a reason not to upgrade all projects to 4.0? If you create
MsTest projects with Visual Studio 2010 you (until recently) had to
chose 4.0.

I can live with my local copy for now but other people might run into
the same issue, I presume
/Marcus

Marcus Hammarberg

unread,
Dec 23, 2010, 2:07:19 AM12/23/10
to SpecFlow

Fab

unread,
May 14, 2013, 11:28:16 AM5/14/13
to spec...@googlegroups.com
I get an error with or without the config file


- Wihtout any config file I get :

Could not load file or assembly 'CodedUITestProject2' or one of its dependencies
. The system cannot find the file specified.


- With specflow.exe.config containing

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <startup> 
         <supportedRuntime version="v4.0.30319" /> 
    </startup> 
</configuration> 

I get :

Could not load file or assembly 'CodedUITestProject2, Version=1.0.0.0, Culture=n
eutral, PublicKeyToken=null' or one of its dependencies. The system cannot find
the file specified.

What can I do ?
Thanks in advance !
Message has been deleted

Fab

unread,
May 15, 2013, 4:53:19 AM5/15/13
to spec...@googlegroups.com
Actually my project was in .NET 4.5 and not 4.0. It works now.

Shipra Agarwal

unread,
Jul 2, 2018, 5:00:05 PM7/2/18
to SpecFlow
How did you solve the issue. I am using .NET 4.6.1 but still facing issue

Carol

unread,
Oct 24, 2018, 8:41:55 AM10/24/18
to SpecFlow
Hi,
Did you actually find a way to run it successfully ?

Would help a lot.
Reply all
Reply to author
Forward
0 new messages