This repository has been archived by the owner on Nov 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
does not work with SpecFlow 2.2.1 #63
Comments
You can specify the path yourself as an arg https://github.com/stajs/SpecFlow.NetCore/blob/master/src/SpecFlow.NetCore/Args.cs#L10 |
I did and it's working. using it in this way now: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="NUnit" Version="3.9.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
<PackageReference Include="SpecFlow.NUnit.Runners" Version="2.2.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0-preview1-25914-04" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="SpecFlow.NetCore" Version="1.0.0" />
</ItemGroup>
<Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
<Exec Command="dotnet SpecFlow.NetCore --specflow-path SpecFlow\2.2.1\tools\specflow.exe" />
</Target>
</Project> I guess the documentation should be updated. |
Agreed, we should update the readme |
Auto-detection of SpecFlow version from the I'll take a PR to improve the README, but at least the output already hints at the solution:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I execute
dotnet SpecFlow.NetCore
I get the following error message:The correct path is
~\.nuget\packages\SpecFlow\2.2.1\tools\specflow.exe
. Please update the version. thx!The text was updated successfully, but these errors were encountered: