File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,19 @@ jobs:
10
10
runs-on : ubuntu-22.04
11
11
strategy :
12
12
matrix :
13
- framework :
14
- - 8.0
15
- - 9.0
13
+ frameworks : [
14
+ { framework: "net8.0", version: "8.0.x" },
15
+ { framework: "net9.0", version: "9.0.x" },
16
+ ]
16
17
steps :
17
18
- uses : actions/checkout@v4
18
19
with :
19
20
fetch-depth : 0
20
21
- name : Setup .NET Core
21
22
uses : actions/setup-dotnet@v4
22
23
with :
23
- dotnet-version : ${{ matrix.framework }}.x
24
+ dotnet-version : ${{ matrix.frameworks.version }}
24
25
- name : Build
25
- run : dotnet build -c Release --framework net ${{ matrix.framework }}
26
+ run : dotnet build -c Release --framework ${{ matrix.frameworks .framework }}
26
27
- name : Test
27
- run : dotnet test -c Release --framework net ${{ matrix.framework }} --no-build
28
+ run : dotnet test -c Release --framework ${{ matrix.frameworks .framework }} --no-build
Original file line number Diff line number Diff line change 5
5
<AssemblyName >Docker.DotNet</AssemblyName >
6
6
<LangVersion >latest</LangVersion >
7
7
</PropertyGroup >
8
- <ItemGroup >
8
+ <ItemGroup Condition =" $(TargetFramework) == 'net8.0'" >
9
+ <PackageReference Include =" System.IO.Pipelines" Version =" 8.0.0" />
10
+ </ItemGroup >
11
+ <ItemGroup Condition =" $(TargetFrameworkIdentifier) == '.NETStandard'" >
9
12
<PackageReference Include =" System.Buffers" Version =" 4.5.1" />
10
13
<PackageReference Include =" System.IO.Pipelines" Version =" 8.0.0" />
11
14
<PackageReference Include =" System.Net.Http.Json" Version =" 8.0.1" />
12
15
<PackageReference Include =" System.Text.Json" Version =" 8.0.5" />
13
16
</ItemGroup >
14
- <ItemGroup Condition =" $(TargetFrameworkIdentifier) == 'net9.0'" >
15
- <PackageReference Include =" System.IO.Pipelines" Version =" 9.0.0" />
16
- <PackageReference Include =" System.Net.Http.Json" Version =" 9.0.0" />
17
- <PackageReference Include =" System.Text.Json" Version =" 9.0.0" />
18
- </ItemGroup >
19
17
</Project >
You can’t perform that action at this time.
0 commit comments