Skip to content

Commit 8249413

Browse files
committed
Updated tests and fixed build YAML
1 parent 336d87a commit 8249413

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ steps:
99
displayName: 'Use .Net Core sdk 3.0.100'
1010
inputs:
1111
version: 3.0.100
12+
- task: UseDotNet@2
13+
displayName: 'Use .Net Core sdk 2.1.802'
14+
inputs:
15+
version: 2.1.802
1216
- task: DotNetCoreCLI@2
1317
displayName: 'dotnet build'
1418
inputs:

test/Joonasw.AspNetCore.SecurityHeaders.Tests/Joonasw.AspNetCore.SecurityHeaders.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>netcoreapp1.0;netcoreapp2.0</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp2.0;netcoreapp3.0</TargetFrameworks>
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
88
<PackageReference Include="xunit" Version="2.3.1" />
99
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
1010
</ItemGroup>
11-
<ItemGroup Condition="$(TargetFramework) == 'netcoreapp1.0'">
12-
<PackageReference Include="Microsoft.AspNetCore.Http" Version="1.0.0" />
13-
</ItemGroup>
1411
<ItemGroup Condition="$(TargetFramework) == 'netcoreapp2.0'">
15-
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.0.1" />
12+
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.0.3" />
13+
</ItemGroup>
14+
<ItemGroup Condition="$(TargetFramework) == 'netcoreapp3.0'">
15+
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
1616
</ItemGroup>
1717
<ItemGroup>
1818
<ProjectReference Include="..\..\src\Joonasw.AspNetCore.SecurityHeaders\Joonasw.AspNetCore.SecurityHeaders.csproj" />

0 commit comments

Comments
 (0)