File tree Expand file tree Collapse file tree 7 files changed +29
-21
lines changed Expand file tree Collapse file tree 7 files changed +29
-21
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ jobs:
14
14
env :
15
15
DOTNET_CLI_TELEMETRY_OPTOUT : ' true'
16
16
steps :
17
- - name : Setup .Net 7.0.x
17
+ - name : Setup .Net
18
18
uses : actions/setup-dotnet@v3
19
19
with :
20
- dotnet-version : ' 7.0.x'
20
+ dotnet-version : |
21
+ 7.0.x
22
+ 8.0.x
21
23
- uses : actions/checkout@v4
22
24
- name : Restore
23
25
run : dotnet restore --nologo
@@ -32,10 +34,10 @@ jobs:
32
34
DOTNET_CLI_TELEMETRY_OPTOUT : ' true'
33
35
steps :
34
36
- uses : actions/checkout@v4
35
- - name : Setup .Net 7 .0.x
37
+ - name : Setup .Net 8 .0.x
36
38
uses : actions/setup-dotnet@v3
37
39
with :
38
- dotnet-version : ' 7 .0.x'
40
+ dotnet-version : ' 8 .0.x'
39
41
- name : Restore
40
42
run : dotnet restore --nologo
41
43
- name : .Net Format
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ jobs:
11
11
env :
12
12
DOTNET_CLI_TELEMETRY_OPTOUT : ' true'
13
13
steps :
14
- - name : Setup .Net 7.0.x
14
+ - name : Setup .Net
15
15
uses : actions/setup-dotnet@v3
16
16
with :
17
- dotnet-version : ' 7.0.x'
17
+ dotnet-version : |
18
+ 7.0.x
19
+ 8.0.x
18
20
- uses : actions/checkout@v4
19
21
- name : Fetch all history for all tags and branches
20
22
run : git fetch --prune --unshallow
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ jobs:
14
14
env :
15
15
DOTNET_CLI_TELEMETRY_OPTOUT : ' true'
16
16
steps :
17
- - name : Setup .Net 7.0.x
17
+ - name : Setup .Net
18
18
uses : actions/setup-dotnet@v3
19
19
with :
20
- dotnet-version : ' 7.0.x'
20
+ dotnet-version : |
21
+ 7.0.x
22
+ 8.0.x
21
23
- uses : actions/checkout@v4
22
24
- name : Restore
23
25
run : dotnet restore --nologo
@@ -35,10 +37,10 @@ jobs:
35
37
with :
36
38
ref : ${{ github.head_ref }}
37
39
fetch-depth : 0
38
- - name : Setup .Net 7 .0.x
40
+ - name : Setup .Net 8 .0.x
39
41
uses : actions/setup-dotnet@v3
40
42
with :
41
- dotnet-version : ' 7 .0.x'
43
+ dotnet-version : ' 8 .0.x'
42
44
- name : Restore
43
45
run : dotnet restore --nologo
44
46
- name : Add .Net Format Problem Matcher
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ jobs:
13
13
env :
14
14
DOTNET_CLI_TELEMETRY_OPTOUT : ' true'
15
15
steps :
16
- - name : Setup .Net 7.0.x
16
+ - name : Setup .Net
17
17
uses : actions/setup-dotnet@v3
18
18
with :
19
- dotnet-version : ' 7.0.x'
19
+ dotnet-version : |
20
+ 7.0.x
21
+ 8.0.x
20
22
- uses : actions/checkout@v4
21
23
- name : Fetch all history for all tags and branches
22
24
run : git fetch --prune --unshallow
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net7.0</ TargetFramework >
5
- <LangVersion >11 .0</LangVersion >
4
+ <TargetFrameworks >net7.0;net8.0</ TargetFrameworks >
5
+ <LangVersion >12 .0</LangVersion >
6
6
<Nullable >enable</Nullable >
7
7
<PackageLicense >MIT</PackageLicense >
8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
11
<ProjectReference Include =" ..\ReportingApi\ReportingApi.csproj" />
12
12
</ItemGroup >
13
-
13
+
14
14
<ItemGroup >
15
15
<PackageReference Include =" coverlet.collector" Version =" 6.0.0" >
16
16
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
Original file line number Diff line number Diff line change 1
1
namespace ReportingApi ;
2
2
3
- public interface IReportBody
4
- {
5
- }
3
+ public interface IReportBody ;
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net7.0</ TargetFramework >
5
- <LangVersion >11 .0</LangVersion >
4
+ <TargetFrameworks >net7.0;net8.0</ TargetFrameworks >
5
+ <LangVersion >12 .0</LangVersion >
6
6
<Nullable >enable</Nullable >
7
7
<PackageLicense >MIT</PackageLicense >
8
8
<RepositoryUrl >https://github.com/aviationexam/reporting-api</RepositoryUrl >
19
19
<PackageReference Include =" System.Text.Json" Version =" 7.0.3" />
20
20
</ItemGroup >
21
21
22
-
22
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8.0' " >
23
+ <PackageReference Include =" System.Text.Json" Version =" 8.0.0" />
24
+ </ItemGroup >
23
25
24
26
</Project >
You can’t perform that action at this time.
0 commit comments