Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Tools version is unsupported #49

Closed
MovGP0 opened this issue Aug 25, 2017 · 3 comments
Closed

Tools version is unsupported #49

MovGP0 opened this issue Aug 25, 2017 · 3 comments

Comments

@MovGP0
Copy link

MovGP0 commented Aug 25, 2017

I followed the instructions and get the following error:

The tools version "14.0" is unrecognized. Available tools versions are "2.0", "3.5", "4.0".

the .csproj file looks like the following:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
    <PackageReference Include="NUnit" Version="3.7.1" />
    <PackageReference Include="SpecFlow.NetCore" Version="1.0.0-rc8" />
  </ItemGroup>
  <ItemGroup>
    <DotNetCliToolReference Include="SpecFlow.NetCore" Version="1.0.0-rc8" />
  </ItemGroup>
  <Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
    <Exec Command="dotnet SpecFlow.NetCore" />
  </Target>
</Project>

I also get the following output:

New file generated: C:\Users\...\XYZ.feature.cs. No tests in XYZ.feature will be discovered by 'dotnet test'

But the file is not generated in the folder specified.

@stajs
Copy link
Owner

stajs commented Aug 27, 2017

Where is your reference to SpecFlow? Check the README for an example. Does the sample work for you?

@MovGP0
Copy link
Author

MovGP0 commented Aug 27, 2017

@stajs

Restoring packages for C:\Users\movgp\Documents\XYZ\XYZ.AcceptanceTests\XYZ.AcceptanceTests.csproj...
Package SpecFlow 2.2.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package SpecFlow 2.2.0 supports: net45 (.NETFramework,Version=v4.5)
Package restore failed. Rolling back package changes for 'XYZ.AcceptanceTests'.
Time Elapsed: 00:00:00.8379232
========== Finished ==========

@stajs
Copy link
Owner

stajs commented Aug 27, 2017

See supported frameworks and #39.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants