diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 8c887226..975227db 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -17,10 +17,10 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
- dotnet-version: '8.0.x'
+ dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore src/Lumina.sln
- name: Build
run: dotnet build src/Lumina.sln --no-restore
- name: Run tests
- run: dotnet test src/Lumina.sln --no-build --verbosity normal
\ No newline at end of file
+ run: dotnet test src/Lumina.sln --no-build --verbosity normal
diff --git a/src/Lumina.Application/Common/Behaviors/ValidationBehavior.cs b/src/Lumina.Application/Common/Behaviors/ValidationBehavior.cs
index 1c3fda2c..de644cc6 100644
--- a/src/Lumina.Application/Common/Behaviors/ValidationBehavior.cs
+++ b/src/Lumina.Application/Common/Behaviors/ValidationBehavior.cs
@@ -10,7 +10,7 @@ using System.Threading.Tasks;
namespace Lumina.Application.Common.Behaviors;
///
-/// Represents a validation behavior in the MediatR pipeline for handling requests and responses.
+/// Represents a validation behavior in the Mediator pipeline for handling requests and responses.
///
/// The type representing a request. It should implement .
/// The type representing a response. It should implement interface.
@@ -34,7 +34,7 @@ public class ValidationBehavior : IPipelineBehaviorIncoming request.
/// Awaitable delegate for the next action in the pipeline. Eventually this delegate represents the handler.
/// Cancellation token that can be used to stop the execution.
- public async ValueTask Handle(TRequest request, CancellationToken cancellationToken, MessageHandlerDelegate next)
+ public async ValueTask Handle(TRequest request, MessageHandlerDelegate next, CancellationToken cancellationToken)
{
// if there is no validator, just invoke the handler
if (_validator is null)
diff --git a/src/Lumina.Application/Lumina.Application.csproj b/src/Lumina.Application/Lumina.Application.csproj
index 962a6f7e..eb1ee147 100644
--- a/src/Lumina.Application/Lumina.Application.csproj
+++ b/src/Lumina.Application/Lumina.Application.csproj
@@ -1,11 +1,12 @@
- net8.0
+ net9.0
disable
enable
$(SolutionDir)..\bin\api\
false
true
+ $(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904
@@ -18,14 +19,14 @@
-
-
-
-
+
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
-
+
+
diff --git a/src/Lumina.Contracts/Lumina.Contracts.csproj b/src/Lumina.Contracts/Lumina.Contracts.csproj
index 77d3ef94..19cb6d5f 100644
--- a/src/Lumina.Contracts/Lumina.Contracts.csproj
+++ b/src/Lumina.Contracts/Lumina.Contracts.csproj
@@ -1,11 +1,12 @@
- net8.0
+ net9.0
disable
enable
$(SolutionDir)..\bin\api\
false
true
+ $(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904
diff --git a/src/Lumina.DataAccess/Lumina.DataAccess.csproj b/src/Lumina.DataAccess/Lumina.DataAccess.csproj
index 8853bf8b..33a42c4b 100644
--- a/src/Lumina.DataAccess/Lumina.DataAccess.csproj
+++ b/src/Lumina.DataAccess/Lumina.DataAccess.csproj
@@ -1,11 +1,12 @@
- net8.0
+ net9.0
disable
enable
$(SolutionDir)..\bin\api\
false
true
+ $(WarningsNotAsErrors);NU1901;NU1902;NU1903;NU1904
@@ -17,14 +18,14 @@
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileTypeService.cs b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileTypeService.cs
index fde3da60..7b90341a 100644
--- a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileTypeService.cs
+++ b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileTypeService.cs
@@ -96,7 +96,9 @@ public class FileTypeService : IFileTypeService
// Read more content from the file
using FileSystemStream stream = _fileSystem.FileStream.New(path, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite);
byte[] svgBuffer = new byte[1000];
+#pragma warning disable CA2022 // Avoid inexact read with 'Stream.Read'
stream.Read(svgBuffer, 0, 1000);
+#pragma warning restore CA2022 // Avoid inexact read with 'Stream.Read'
string extendedContent = Encoding.UTF8.GetString(svgBuffer);
// check if the extended content contains