diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 3c6423c2..5ae23348 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -13,10 +13,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 05a2c53b..de644cc6 100644
--- a/src/Lumina.Application/Common/Behaviors/ValidationBehavior.cs
+++ b/src/Lumina.Application/Common/Behaviors/ValidationBehavior.cs
@@ -3,7 +3,6 @@ using ErrorOr;
using FluentValidation;
using Mediator;
using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
using System.Threading;
using System.Threading.Tasks;
#endregion
@@ -11,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.
@@ -35,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)
@@ -51,4 +50,4 @@ public class ValidationBehavior : IPipelineBehavior
- net8.0
+ net9.0
disable
enable
$(SolutionDir)..\bin\server\
@@ -19,16 +19,16 @@
-
-
-
-
-
-
+
+
+
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
-
+
+
diff --git a/src/Lumina.Contracts/Lumina.Contracts.csproj b/src/Lumina.Contracts/Lumina.Contracts.csproj
index 0f38f5a4..daa23099 100644
--- a/src/Lumina.Contracts/Lumina.Contracts.csproj
+++ b/src/Lumina.Contracts/Lumina.Contracts.csproj
@@ -1,6 +1,6 @@
- net8.0
+ net9.0
disable
enable
$(SolutionDir)..\bin\server\
diff --git a/src/Lumina.DataAccess/Lumina.DataAccess.csproj b/src/Lumina.DataAccess/Lumina.DataAccess.csproj
index e2e55232..ff1e25dc 100644
--- a/src/Lumina.DataAccess/Lumina.DataAccess.csproj
+++ b/src/Lumina.DataAccess/Lumina.DataAccess.csproj
@@ -1,6 +1,6 @@
- net8.0
+ net9.0
disable
enable
$(SolutionDir)..\bin\server\
@@ -17,15 +17,15 @@
-
-
-
-
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Lumina.Domain/Core/Aggregates/FileManagement/FileManagementAggregate/Services/FileTypeService.cs b/src/Lumina.Domain/Core/Aggregates/FileManagement/FileManagementAggregate/Services/FileTypeService.cs
index c942ddf9..58b150a6 100644
--- a/src/Lumina.Domain/Core/Aggregates/FileManagement/FileManagementAggregate/Services/FileTypeService.cs
+++ b/src/Lumina.Domain/Core/Aggregates/FileManagement/FileManagementAggregate/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