Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit 679f8f1

Browse files
authored
Require SpecFlow 3.3.30+ and .NET Framework 4.6.1+ (#35)
Requires .NET Framework 4.6.1 or later, SpecFlow 3.3.30 or later, Microsoft.Extensions.DependencyInjection 3.1.5 or later. This is a breaking change, but marked as minor because we are still at v0. +semver: minor
1 parent df94a46 commit 679f8f1

File tree

8 files changed

+17
-53
lines changed

8 files changed

+17
-53
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
SpecFlow plugin that enables to use Microsoft.Extensions.DependencyInjection for resolving test dependencies.
99

1010
Currently supports:
11-
* [SpecFlow v3.0 or above](https://www.nuget.org/packages/SpecFlow/3.0)
12-
* [Microsoft.Extensions.DependencyInjection v2.1 or above](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/2.1)
11+
* [SpecFlow v3.3.30 or later](https://www.nuget.org/packages/SpecFlow/3.3.30)
12+
* [Microsoft.Extensions.DependencyInjection v3.1.5 or later](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection/3.1.5)
1313

1414
Listed on [Available Plugins for SpecFlow](https://specflow.org/documentation/Available-Plugins/).
1515
Based on https://github.com/gasparnagy/SpecFlow.Autofac (now [part of SpecFlow](https://github.com/SpecFlowOSS/SpecFlow/tree/master/Plugins/SpecFlow.Autofac.SpecFlowPlugin)).

SpecFlow.DependencyInjection.Tests/SpecFlow.DependencyInjection.Tests.csproj

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
4+
<TargetFrameworks>net461;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
55
<IsPackable>false</IsPackable>
6+
<Product>SpecFlow.DependencyInjection</Product>
67
<RootNamespace>SolidToken.SpecFlow.DependencyInjection.Tests</RootNamespace>
78
<AssemblyName>SolidToken.SpecFlow.DependencyInjection.Tests</AssemblyName>
89
</PropertyGroup>
910

1011
<ItemGroup>
11-
<PackageReference Include="GitVersionTask" Version="5.1.3" PrivateAssets="All" />
12-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
12+
<PackageReference Include="GitVersionTask" Version="5.5.0" PrivateAssets="All" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
1314
<PackageReference Include="xunit" Version="2.4.1" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" PrivateAssets="All" />
15-
</ItemGroup>
16-
17-
<!-- .NET Core 2.1 LTS (always use lowest applicable version) -->
18-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">
19-
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.0.188" />
20-
<PackageReference Include="SpecFlow.xUnit" Version="3.0.188" />
21-
</ItemGroup>
22-
23-
<!-- .NET Core 3.1 LTS (always use latest applicable version) -->
24-
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
25-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.1" />
26-
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.1.86" />
27-
<PackageReference Include="SpecFlow.xUnit" Version="3.1.86" />
15+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" PrivateAssets="All" />
16+
<PackageReference Include="SpecFlow.xUnit" Version="3.4.31" />
2817
</ItemGroup>
2918

3019
<ItemGroup>

SpecFlow.DependencyInjection.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1111
.gitignore = .gitignore
1212
azure-pipelines.yml = azure-pipelines.yml
1313
GitVersion.yml = GitVersion.yml
14-
global.json = global.json
1514
README.md = README.md
1615
EndProjectSection
1716
EndProject

SpecFlow.DependencyInjection/SpecFlow.DependencyInjection.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1919
</PropertyGroup>
2020
<ItemGroup>
21-
<None Include="build\**" Pack="True" PackagePath="build\" />
22-
</ItemGroup>
23-
<ItemGroup>
24-
<PackageReference Include="GitVersionTask" Version="5.1.3" PrivateAssets="All" />
25-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1" />
21+
<PackageReference Include="GitVersionTask" Version="5.5.0" PrivateAssets="All" />
22+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" />
2623
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
27-
<PackageReference Include="SpecFlow" Version="3.0.188" />
24+
<PackageReference Include="SpecFlow" Version="3.3.30" />
2825
</ItemGroup>
2926
</Project>

SpecFlow.DependencyInjection/build/SolidToken.SpecFlow.DependencyInjection.props

Lines changed: 0 additions & 9 deletions
This file was deleted.

SpecFlow.DependencyInjection/build/SolidToken.SpecFlow.DependencyInjection.targets

Lines changed: 0 additions & 7 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,40 @@ pool:
1010
vmImage: 'windows-latest'
1111

1212
steps:
13-
# Restore
1413
- task: DotNetCoreCLI@2
1514
displayName: Restore
1615
inputs:
1716
command: restore
18-
# Build .NET Standard 2.0
1917
- task: DotNetCoreCLI@2
2018
displayName: Build
2119
inputs:
2220
command: build
2321
projects: 'SpecFlow.DependencyInjection'
2422
arguments: '--configuration $(BuildConfiguration)'
25-
# Test .NET Core 2.1
23+
- task: DotNetCoreCLI@2
24+
displayName: Test .NET Framework 4.6.1
25+
inputs:
26+
command: test
27+
projects: 'SpecFlow.DependencyInjection.Tests'
28+
arguments: '--configuration $(BuildConfiguration) --framework net461'
2629
- task: DotNetCoreCLI@2
2730
displayName: Test .NET Core 2.1
2831
inputs:
2932
command: test
3033
projects: 'SpecFlow.DependencyInjection.Tests'
3134
arguments: '--configuration $(BuildConfiguration) --framework netcoreapp2.1'
32-
# Test .NET Core 3.1
3335
- task: DotNetCoreCLI@2
3436
displayName: Test .NET Core 3.1
3537
inputs:
3638
command: test
3739
projects: 'SpecFlow.DependencyInjection.Tests'
3840
arguments: '--configuration $(BuildConfiguration) --framework netcoreapp3.1'
39-
# Pack output of Build command
4041
- task: DotNetCoreCLI@2
4142
displayName: Pack
4243
inputs:
4344
command: pack
4445
packagesToPack: 'SpecFlow.DependencyInjection'
4546
nobuild: true
46-
# Publish
4747
- task: PublishBuildArtifacts@1
4848
displayName: Publish
4949
inputs:

global.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)