diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index d5da2d7..ee1e6b0 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -23,11 +23,14 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
- dotnet-version: '7.0.x'
- include-prerelease: true
+ dotnet-version: '8.0'
+# include-prerelease: true
+
- name: Restore dependencies
run: dotnet restore *.sln
+
- name: Build
run: dotnet build --no-restore *.sln
+
- name: Test
run: dotnet test --no-build --verbosity normal *.sln
diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml
index 5483a08..53537ab 100644
--- a/.github/workflows/publish-nuget.yml
+++ b/.github/workflows/publish-nuget.yml
@@ -34,7 +34,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 7.0.x
+ dotnet-version: '8.0'
# Publish
- name: Build, Pack & Publish ${{ matrix.project.name }} to ${{ matrix.nuget.name }}
diff --git a/Directory.Build.props b/Directory.Build.props
index 7d1c136..5154ce7 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -5,7 +5,7 @@
latest
3.1
- rc4
+ rc5
Sakura Akeno Isayeki
Nodsoft Systems
diff --git a/SocialGuard.Api.DbMigrator/SocialGuard.Api.DbMigrator.csproj b/SocialGuard.Api.DbMigrator/SocialGuard.Api.DbMigrator.csproj
index 11f129b..4a2902f 100644
--- a/SocialGuard.Api.DbMigrator/SocialGuard.Api.DbMigrator.csproj
+++ b/SocialGuard.Api.DbMigrator/SocialGuard.Api.DbMigrator.csproj
@@ -1,15 +1,15 @@
- net6.0
+ net8.0
enable
enable
dotnet-SocialGuard.Api.DbMigrator-3AA5545F-89A5-43BD-81AE-EEB10C452C57
-
-
+
+
diff --git a/SocialGuard.Api/Program.cs b/SocialGuard.Api/Program.cs
index c06e443..e03a5ee 100644
--- a/SocialGuard.Api/Program.cs
+++ b/SocialGuard.Api/Program.cs
@@ -50,6 +50,6 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
webBuilder.UseStartup())
- .UseSerilog();
+ .UseSerilog((hostingCtx, config) => config.ReadFrom.Configuration(hostingCtx.Configuration));
}
}
diff --git a/SocialGuard.Api/Services/Authentication/AuthenticationService.cs b/SocialGuard.Api/Services/Authentication/AuthenticationService.cs
index 033392e..4e2350f 100644
--- a/SocialGuard.Api/Services/Authentication/AuthenticationService.cs
+++ b/SocialGuard.Api/Services/Authentication/AuthenticationService.cs
@@ -1,4 +1,4 @@
-using Microsoft.AspNetCore.Identity;
+using Microsoft.AspNetCore.Identity;
using Microsoft.IdentityModel.Tokens;
using SocialGuard.Common.Data.Models.Authentication;
using System.IdentityModel.Tokens.Jwt;
@@ -141,4 +141,4 @@ public record AuthServiceResponse
public Response Response { get; init; }
}
-public record AuthServiceResponse : AuthServiceResponse