Skip to content

Commit 9c9c363

Browse files
committed
Update .NET 7
1 parent 11785b7 commit 9c9c363

10 files changed

+29
-44
lines changed

.github/workflows/Build.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,14 @@ jobs:
3939
name: windows-latest
4040
runs-on: windows-latest
4141
steps:
42-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v3
4343
with:
4444
fetch-depth: 0
4545
- uses: actions/setup-dotnet@v1
4646
with:
47-
dotnet-version: 5.0.*
48-
- uses: actions/setup-dotnet@v1
49-
with:
50-
dotnet-version: 6.0.*
47+
dotnet-version: 7.0.*
5148
- name: Cache .nuke/temp, ~/.nuget/packages
52-
uses: actions/cache@v2
49+
uses: actions/cache@v3
5350
with:
5451
path: |
5552
.nuke/temp
@@ -63,17 +60,14 @@ jobs:
6360
name: ubuntu-latest
6461
runs-on: ubuntu-latest
6562
steps:
66-
- uses: actions/checkout@v2
63+
- uses: actions/checkout@v3
6764
with:
6865
fetch-depth: 0
6966
- uses: actions/setup-dotnet@v1
7067
with:
71-
dotnet-version: 5.0.*
72-
- uses: actions/setup-dotnet@v1
73-
with:
74-
dotnet-version: 6.0.*
68+
dotnet-version: 7.0.*
7569
- name: Cache .nuke/temp, ~/.nuget/packages
76-
uses: actions/cache@v2
70+
uses: actions/cache@v3
7771
with:
7872
path: |
7973
.nuke/temp

.github/workflows/Release.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,14 @@ jobs:
2727
name: windows-latest
2828
runs-on: windows-latest
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
3131
with:
3232
fetch-depth: 0
3333
- uses: actions/setup-dotnet@v1
3434
with:
35-
dotnet-version: 5.0.*
36-
- uses: actions/setup-dotnet@v1
37-
with:
38-
dotnet-version: 6.0.*
35+
dotnet-version: 7.0.*
3936
- name: Cache .nuke/temp, ~/.nuget/packages
40-
uses: actions/cache@v2
37+
uses: actions/cache@v3
4138
with:
4239
path: |
4340
.nuke/temp

.github/workflows/Tests.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,14 @@ jobs:
3131
name: windows-latest
3232
runs-on: windows-latest
3333
steps:
34-
- uses: actions/checkout@v2
34+
- uses: actions/checkout@v3
3535
with:
3636
fetch-depth: 0
3737
- uses: actions/setup-dotnet@v1
3838
with:
39-
dotnet-version: 5.0.*
40-
- uses: actions/setup-dotnet@v1
41-
with:
42-
dotnet-version: 6.0.*
39+
dotnet-version: 7.0.*
4340
- name: Cache .nuke/temp, ~/.nuget/packages
44-
uses: actions/cache@v2
41+
uses: actions/cache@v3
4542
with:
4643
path: |
4744
.nuke/temp
@@ -55,17 +52,14 @@ jobs:
5552
name: ubuntu-latest
5653
runs-on: ubuntu-latest
5754
steps:
58-
- uses: actions/checkout@v2
55+
- uses: actions/checkout@v3
5956
with:
6057
fetch-depth: 0
6158
- uses: actions/setup-dotnet@v1
6259
with:
63-
dotnet-version: 5.0.*
64-
- uses: actions/setup-dotnet@v1
65-
with:
66-
dotnet-version: 6.0.*
60+
dotnet-version: 7.0.*
6761
- name: Cache .nuke/temp, ~/.nuget/packages
68-
uses: actions/cache@v2
62+
uses: actions/cache@v3
6963
with:
7064
path: |
7165
.nuke/temp

AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// <auto-generated/>
22
using System.Reflection;
3-
[assembly: AssemblyMetadataAttribute("githash","29d0c82d7c912c011260c22915da85b65c7c65e0")]
3+
[assembly: AssemblyMetadataAttribute("githash","11785b79605980d63637315e90346f303c54a603")]
44
namespace System {
55
internal static class AssemblyVersionInformation {
6-
internal const System.String AssemblyMetadata_githash = "29d0c82d7c912c011260c22915da85b65c7c65e0";
6+
internal const System.String AssemblyMetadata_githash = "11785b79605980d63637315e90346f303c54a603";
77
}
88
}
99

AvroSchemaGenerator.Tests/AvroSchemaGenerator.Tests.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="apache.avro" Version="1.11.0" />
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
12-
<PackageReference Include="xunit" Version="2.4.1" />
10+
<PackageReference Include="apache.avro" Version="1.11.1" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
12+
<PackageReference Include="xunit" Version="2.4.2" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>
17-
<PackageReference Include="coverlet.collector" Version="3.1.2">
17+
<PackageReference Include="coverlet.collector" Version="3.2.0">
1818
<PrivateAssets>all</PrivateAssets>
1919
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2020
</PackageReference>

AvroSchemaGenerator.Tests/GetSchemaTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public void TestNestedCustomDefinition()
406406
[Fact]
407407
public void TestFailedCustomDefinition()
408408
{
409-
Assert.Throws(typeof(ArgumentException), () => typeof(FailedCustomDefinitionTest).GetSchema());
409+
Assert.Throws<ArgumentException>(() => typeof(FailedCustomDefinitionTest).GetSchema());
410410
}
411411

412412
private sbyte[] Write<T>(T message, ReflectWriter<T> writer)

SchemaGenerator/AvroSchemaGenerator.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0</TargetFrameworks>
55
<PackageProjectUrl>https://github.com/eaba/SchemaGenerator</PackageProjectUrl>
66
<RepositoryUrl>https://github.com/eaba/SchemaGenerator</RepositoryUrl>
77
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -16,7 +16,7 @@
1616

1717
<ItemGroup>
1818
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
19-
<PackageReference Include="System.Text.Json" Version="6.0.5" />
19+
<PackageReference Include="System.Text.Json" Version="7.0.1" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

build/Build.CI.GitHubActions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected override GitHubActionsJob GetJobs(GitHubActionsImage image, IReadOnlyC
6161
try
6262
{
6363
var newSteps = new List<GitHubActionsStep>(job.Steps);
64-
foreach (var version in new[] { "6.0.*", "5.0.*" })
64+
foreach (var version in new[] { "7.0.*" })
6565
{
6666
newSteps.Insert(1, new GitHubActionsSetupDotNetStep
6767
{

build/_build.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
<RootNamespace></RootNamespace>
77
<NoWarn>CS0649;CS0169</NoWarn>
88
<NukeRootDirectory>..</NukeRootDirectory>
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Nuke.Common" Version="6.1.2" />
14+
<PackageReference Include="Nuke.Common" Version="6.3.0" />
1515
<PackageDownload Include="GitVersion.Tool" Version="[5.8.1]" />
1616
</ItemGroup>
1717

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.100",
3+
"version": "7.0.101",
44
"rollForward": "latestMinor"
55
}
66
}

0 commit comments

Comments
 (0)