Skip to content

Commit b8b66dd

Browse files
Merge pull request #128 from nullinside-development-group/chore/update
chore: update to .net 10
2 parents 0df3c27 + 8db28f5 commit b8b66dd

File tree

6 files changed

+17
-33
lines changed

6 files changed

+17
-33
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install .NET Core
3737
uses: actions/setup-dotnet@v3
3838
with:
39-
dotnet-version: 9.x.x
39+
dotnet-version: 10.x.x
4040

4141
# Execute the build
4242
- name: Execute Release Build
@@ -58,7 +58,7 @@ jobs:
5858
- name: Install .NET Core
5959
uses: actions/setup-dotnet@v3
6060
with:
61-
dotnet-version: 9.x.x
61+
dotnet-version: 10.x.x
6262

6363
# Execute the tests
6464
- name: Execute Tests
@@ -119,7 +119,7 @@ jobs:
119119
- name: Install .NET Core
120120
uses: actions/setup-dotnet@v3
121121
with:
122-
dotnet-version: 9.x.x
122+
dotnet-version: 10.x.x
123123

124124
# Execute the build
125125
- name: Execute Build

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
1+
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
22
USER $APP_UID
33
WORKDIR /app
44
EXPOSE 8080
55
EXPOSE 8081
66

7-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
7+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
88
ARG BUILD_CONFIGURATION=Release
99
WORKDIR /src
1010
COPY ["src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj", "src/Nullinside.Api.TwitchBot/"]

src/Nullinside.Api.TwitchBot.Tests/Nullinside.Api.TwitchBot.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

@@ -15,12 +15,12 @@
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>
18-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.10" />
19-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.10" />
20-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.0" />
19+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.0" />
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
2121
<PackageReference Include="Moq" Version="4.20.72"/>
2222
<PackageReference Include="NUnit" Version="4.4.0" />
23-
<PackageReference Include="NUnit.Analyzers" Version="4.11.1">
23+
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>

src/Nullinside.Api.TwitchBot/Nullinside.Api.TwitchBot.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
@@ -22,17 +22,16 @@
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<PackageReference Include="FlexLabs.EntityFrameworkCore.Upsert" Version="9.101.0" />
25+
<PackageReference Include="FlexLabs.EntityFrameworkCore.Upsert" Version="10.0.0-beta1" />
2626
<PackageReference Include="log4net.Ext.Json" Version="3.0.3"/>
27-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.10" />
28-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
27+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" />
28+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.0">
2929
<PrivateAssets>all</PrivateAssets>
3030
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3131
</PackageReference>
3232
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="8.0.0"/>
3333
<PackageReference Include="Nullinside.MySql.EntityFrameworkCore" Version="9.0.3"/>
34-
<PackageReference Include="Swashbuckle.AspNetCore" Version="9.0.6" />
35-
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1"/>
34+
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.1" />
3635
</ItemGroup>
3736

3837
<ItemGroup>

src/Nullinside.Api.TwitchBot/Program.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Microsoft.AspNetCore.Authentication;
44
using Microsoft.AspNetCore.Authorization;
55
using Microsoft.EntityFrameworkCore;
6-
using Microsoft.OpenApi.Models;
6+
using Microsoft.OpenApi;
77

88
using Nullinside.Api.Common;
99
using Nullinside.Api.Common.AspNetCore.Middleware;
@@ -66,21 +66,6 @@
6666
Scheme = "Bearer"
6767
});
6868

69-
c.AddSecurityRequirement(new OpenApiSecurityRequirement {
70-
{
71-
new OpenApiSecurityScheme {
72-
Reference = new OpenApiReference {
73-
Type = ReferenceType.SecurityScheme,
74-
Id = "Bearer"
75-
},
76-
Scheme = "oauth2",
77-
Name = "Bearer",
78-
In = ParameterLocation.Header
79-
},
80-
new List<string>()
81-
}
82-
});
83-
8469
string xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
8570
string xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
8671
c.IncludeXmlComments(xmlPath);

0 commit comments

Comments
 (0)