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

Commit b9174db

Browse files
authored
Merge pull request #26 from akunzai/dotnet-sdk-5
Migrate to .NET 5.0 SDK
2 parents ec1d47a + 2cb9f17 commit b9174db

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up .NET SDK
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 3.1.x
19+
dotnet-version: 5.0.x
2020
- name: Build packages
2121
run: |
2222
dotnet --info

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ jobs:
2020
- uses: actions/checkout@v2
2121
with:
2222
fetch-depth: 10
23-
- name: Set up .NET SDK
23+
- name: Set up .NET Core 3.1 SDK
2424
uses: actions/setup-dotnet@v1
2525
with:
2626
dotnet-version: 3.1.x
27+
- name: Set up .NET 5 SDK
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: 5.0.x
2731
- name: Build
2832
run: |
2933
dotnet --info

test/Spring.Extensions.DependencyInjection.Tests/Spring.Extensions.DependencyInjection.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net472</TargetFramework>
4+
<TargetFrameworks>net5.0;netcoreapp3.1;net472</TargetFrameworks>
55
<IsTestProject>true</IsTestProject>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
@@ -17,7 +17,7 @@
1717
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" PrivateAssets="All" />
1818
</ItemGroup>
1919

20-
<ItemGroup Condition=" '$(OS)' != 'Windows_NT' ">
20+
<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(OS)' != 'Windows_NT' ">
2121
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.10.0" />
2222
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All" />
2323
</ItemGroup>

0 commit comments

Comments
 (0)