aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-01-20 18:58:44 -0600
committerGitHub <noreply@github.com>2024-01-20 18:58:44 -0600
commit3d941d9cd4ac98ee18bcdc952b1ed21d89826ded (patch)
treee86c237dd977d6f54b1488a4b416c5149f9b0204
parent9c0a10048e34106fdf744cb2351da6a5b6f6223d (diff)
parent99e09d1ab64626f6bf21bb3f6772e29e0db970e9 (diff)
downloadslskd-3d941d9cd4ac98ee18bcdc952b1ed21d89826ded.tar.gz
Merge pull request #1052 from slskd/dotnet
Upgrade to .NET 8
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--Dockerfile4
-rw-r--r--docs/build.md2
-rw-r--r--src/slskd/Common/Authentication/ApiKeyAuthentication.cs6
-rw-r--r--src/slskd/Common/Authentication/PassthroughAuthentication.cs5
-rw-r--r--src/slskd/Common/Exceptions/ApplicationShutdownException.cs12
-rw-r--r--src/slskd/Common/Exceptions/GitHubException.cs12
-rw-r--r--src/slskd/Common/Exceptions/IntentionalDisconnectException.cs12
-rw-r--r--src/slskd/Common/Exceptions/NotFoundException.cs12
-rw-r--r--src/slskd/Common/Exceptions/OutOfRangeException.cs10
-rw-r--r--src/slskd/Common/Exceptions/RelayException.cs11
-rw-r--r--src/slskd/Common/Exceptions/RetryException.cs12
-rw-r--r--src/slskd/Common/Exceptions/ShareInitializationException.cs12
-rw-r--r--src/slskd/Common/Exceptions/ShareScanInProgressException.cs12
-rw-r--r--src/slskd/Common/Exceptions/ShareValidationException.cs12
-rw-r--r--src/slskd/Common/Exceptions/SlskdException.cs12
-rw-r--r--src/slskd/Common/Exceptions/UnauthorizedException.cs12
-rw-r--r--src/slskd/Transfers/API/Controllers/TransfersController.cs2
-rw-r--r--src/slskd/Transfers/Uploads/UploadService.cs6
-rw-r--r--src/slskd/slskd.csproj30
-rw-r--r--tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj6
-rw-r--r--tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj6
22 files changed, 34 insertions, 176 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 30cfefa8..23374c4a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,7 +8,7 @@ on:
workflow_dispatch:
env:
- DOTNET_VERSION: '7.0.100'
+ DOTNET_VERSION: '8'
jobs:
build:
diff --git a/Dockerfile b/Dockerfile
index b405eee2..9ffcc2a1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,7 @@ RUN sh ./bin/build --web-only --version $VERSION
# build, test, and publish application binaries
# note: this needs to be pinned to an amd64 image in order to publish armv7 binaries
# https://github.com/dotnet/dotnet-docker/issues/1537#issuecomment-615269150
-FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim AS publish
+FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim AS publish
ARG TARGETPLATFORM
ARG VERSION=0.0.1.65534-local
@@ -32,7 +32,7 @@ RUN bash ./bin/build --dotnet-only --version $VERSION
RUN bash ./bin/publish --no-prebuild --platform $TARGETPLATFORM --version $VERSION --output ../../dist/${TARGETPLATFORM}
# application
-FROM mcr.microsoft.com/dotnet/runtime-deps:7.0-bookworm-slim AS slskd
+FROM mcr.microsoft.com/dotnet/runtime-deps:8.0-bookworm-slim AS slskd
ARG TARGETPLATFORM
ARG TAG=0.0.1
ARG VERSION=0.0.1.65534-local
diff --git a/docs/build.md b/docs/build.md
index 82a23ff2..992d158b 100644
--- a/docs/build.md
+++ b/docs/build.md
@@ -3,7 +3,7 @@
## Prerequisites
1. [Node.js](https://nodejs.org/en/download/current) v18 or greater (with npm 9.6 or greater)
-1. [.NET SDK](https://dotnet.microsoft.com/en-us/download) 7.0
+1. [.NET SDK](https://dotnet.microsoft.com/en-us/download) 8.0
## Easy Way
diff --git a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs
index b27c4c05..1aaa4a4f 100644
--- a/src/slskd/Common/Authentication/ApiKeyAuthentication.cs
+++ b/src/slskd/Common/Authentication/ApiKeyAuthentication.cs
@@ -49,14 +49,12 @@ namespace slskd.Authentication
/// <param name="securityService">The security service.</param>
/// <param name="logger">A logger factory.</param>
/// <param name="urlEncoder">A url encoder.</param>
- /// <param name="systemClock">A system clock interface.</param>
public ApiKeyAuthenticationHandler(
IOptionsMonitor<ApiKeyAuthenticationOptions> apiKeyOptionsMonitor,
ISecurityService securityService,
ILoggerFactory logger,
- UrlEncoder urlEncoder,
- ISystemClock systemClock)
- : base(apiKeyOptionsMonitor, logger, urlEncoder, systemClock)
+ UrlEncoder urlEncoder)
+ : base(apiKeyOptionsMonitor, logger, urlEncoder)
{
Security = securityService;
}
diff --git a/src/slskd/Common/Authentication/PassthroughAuthentication.cs b/src/slskd/Common/Authentication/PassthroughAuthentication.cs
index 5f186aea..510e4a19 100644
--- a/src/slskd/Common/Authentication/PassthroughAuthentication.cs
+++ b/src/slskd/Common/Authentication/PassthroughAuthentication.cs
@@ -46,9 +46,8 @@ namespace slskd.Authentication
/// <param name="optionsMonitor">An options monitor.</param>
/// <param name="logger">A logger factory.</param>
/// <param name="urlEncoder">A url encoder.</param>
- /// <param name="systemClock">A system clock interface.</param>
- public PassthroughAuthenticationHandler(IOptionsMonitor<PassthroughAuthenticationOptions> optionsMonitor, ILoggerFactory logger, UrlEncoder urlEncoder, ISystemClock systemClock)
- : base(optionsMonitor, logger, urlEncoder, systemClock)
+ public PassthroughAuthenticationHandler(IOptionsMonitor<PassthroughAuthenticationOptions> optionsMonitor, ILoggerFactory logger, UrlEncoder urlEncoder)
+ : base(optionsMonitor, logger, urlEncoder)
{
}
diff --git a/src/slskd/Common/Exceptions/ApplicationShutdownException.cs b/src/slskd/Common/Exceptions/ApplicationShutdownException.cs
index e30b5c79..310b317c 100644
--- a/src/slskd/Common/Exceptions/ApplicationShutdownException.cs
+++ b/src/slskd/Common/Exceptions/ApplicationShutdownException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents a normal application shutdown.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class ApplicationShutdownException : SlskdException
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="ApplicationShutdownException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected ApplicationShutdownException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/GitHubException.cs b/src/slskd/Common/Exceptions/GitHubException.cs
index 75c72826..697ae49a 100644
--- a/src/slskd/Common/Exceptions/GitHubException.cs
+++ b/src/slskd/Common/Exceptions/GitHubException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents a normal application shutdown.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class GitHubException : Exception
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="GitHubException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected GitHubException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs b/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs
index d5293e63..c2f09c4b 100644
--- a/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs
+++ b/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents an intentional client disconnect.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class IntentionalDisconnectException : SlskdException
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="IntentionalDisconnectException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected IntentionalDisconnectException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/NotFoundException.cs b/src/slskd/Common/Exceptions/NotFoundException.cs
index cc0f6969..414ccb4b 100644
--- a/src/slskd/Common/Exceptions/NotFoundException.cs
+++ b/src/slskd/Common/Exceptions/NotFoundException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents errors that originate when a searched resource can't be located.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class NotFoundException : SlskdException
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="NotFoundException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected NotFoundException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/OutOfRangeException.cs b/src/slskd/Common/Exceptions/OutOfRangeException.cs
index 7de8cc7b..3eb3ab6d 100644
--- a/src/slskd/Common/Exceptions/OutOfRangeException.cs
+++ b/src/slskd/Common/Exceptions/OutOfRangeException.cs
@@ -58,15 +58,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="OutOfRangeException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected OutOfRangeException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/RelayException.cs b/src/slskd/Common/Exceptions/RelayException.cs
index 11a6bd9e..3b8a4fbe 100644
--- a/src/slskd/Common/Exceptions/RelayException.cs
+++ b/src/slskd/Common/Exceptions/RelayException.cs
@@ -19,7 +19,6 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents an error related to the slskd relay feature.
@@ -58,15 +57,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="RelayException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected RelayException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/RetryException.cs b/src/slskd/Common/Exceptions/RetryException.cs
index c688f377..3adadd2e 100644
--- a/src/slskd/Common/Exceptions/RetryException.cs
+++ b/src/slskd/Common/Exceptions/RetryException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents erorrs that originate while attempting to execute retry logic.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class RetryException : Exception
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="RetryException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected RetryException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/ShareInitializationException.cs b/src/slskd/Common/Exceptions/ShareInitializationException.cs
index 31e45b91..2624da21 100644
--- a/src/slskd/Common/Exceptions/ShareInitializationException.cs
+++ b/src/slskd/Common/Exceptions/ShareInitializationException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents an error that occurs when multiple share scans are attempted concurrently.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class ShareInitializationException : SlskdException
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="ShareInitializationException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected ShareInitializationException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/ShareScanInProgressException.cs b/src/slskd/Common/Exceptions/ShareScanInProgressException.cs
index 2e548930..b6b1a719 100644
--- a/src/slskd/Common/Exceptions/ShareScanInProgressException.cs
+++ b/src/slskd/Common/Exceptions/ShareScanInProgressException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents an error that occurs when multiple share scans are attempted concurrently.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class ShareScanInProgressException : SlskdException
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="ShareScanInProgressException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected ShareScanInProgressException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/ShareValidationException.cs b/src/slskd/Common/Exceptions/ShareValidationException.cs
index 97a3e126..c214556e 100644
--- a/src/slskd/Common/Exceptions/ShareValidationException.cs
+++ b/src/slskd/Common/Exceptions/ShareValidationException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents an error that occurs when multiple share scans are attempted concurrently.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class ShareValidationException : SlskdException
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="ShareValidationException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected ShareValidationException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/SlskdException.cs b/src/slskd/Common/Exceptions/SlskdException.cs
index 6b4cfc2a..22676161 100644
--- a/src/slskd/Common/Exceptions/SlskdException.cs
+++ b/src/slskd/Common/Exceptions/SlskdException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents erorrs that originate from slskd logic.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class SlskdException : Exception
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="SlskdException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected SlskdException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Common/Exceptions/UnauthorizedException.cs b/src/slskd/Common/Exceptions/UnauthorizedException.cs
index a7179c80..de1cac3e 100644
--- a/src/slskd/Common/Exceptions/UnauthorizedException.cs
+++ b/src/slskd/Common/Exceptions/UnauthorizedException.cs
@@ -19,13 +19,11 @@ namespace slskd
{
using System;
using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
/// <summary>
/// Represents errors that originate when a restricted resources is accessed without authorization.
/// </summary>
[ExcludeFromCodeCoverage]
- [Serializable]
public class UnauthorizedException : SlskdException
{
/// <summary>
@@ -58,15 +56,5 @@ namespace slskd
: base(message, innerException)
{
}
-
- /// <summary>
- /// Initializes a new instance of the <see cref="UnauthorizedException"/> class with serialized data.
- /// </summary>
- /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
- /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
- protected UnauthorizedException(SerializationInfo info, StreamingContext context)
- : base(info, context)
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/Transfers/API/Controllers/TransfersController.cs b/src/slskd/Transfers/API/Controllers/TransfersController.cs
index ad984a4c..b5cbf885 100644
--- a/src/slskd/Transfers/API/Controllers/TransfersController.cs
+++ b/src/slskd/Transfers/API/Controllers/TransfersController.cs
@@ -374,7 +374,7 @@ namespace slskd.Transfers.API
return Forbid();
}
- // todo: refactor this so it doesn't return the world. start and end time params
+ // todo: refactor this so it doesn't return the world. start and end time params
// should be required. consider pagination.
var uploads = Transfers.Uploads.List(t => true, includeRemoved: includeRemoved);
diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs
index 55b6b39a..c3c726df 100644
--- a/src/slskd/Transfers/Uploads/UploadService.cs
+++ b/src/slskd/Transfers/Uploads/UploadService.cs
@@ -340,7 +340,7 @@ namespace slskd.Transfers.Uploads
SynchronizedUpdate(transfer);
}),
seekInputStreamAutomatically: false,
- disposeInputStreamOnCompletion: true,
+ disposeInputStreamOnCompletion: true, // note: don't set this to false!
governor: (tx, req, ct) => Governor.GetBytesAsync(tx.Username, req, ct),
reporter: (tx, att, grant, act) => Governor.ReturnBytes(tx.Username, att, grant, act),
slotAwaiter: (tx, ct) => Queue.AwaitStartAsync(tx.Username, tx.Filename),
@@ -354,7 +354,11 @@ namespace slskd.Transfers.Uploads
size: localFileLength,
inputStreamFactory: (startOffset) =>
{
+ #pragma warning disable S2930 // "IDisposables" should be disposed
+ // disposeInputStreamOnCompletion takes care of this
var stream = new FileStream(localFilename, FileMode.Open, FileAccess.Read);
+ #pragma warning restore S2930 // "IDisposables" should be disposed
+
stream.Seek(startOffset, SeekOrigin.Begin);
return Task.FromResult((Stream)stream);
},
diff --git a/src/slskd/slskd.csproj b/src/slskd/slskd.csproj
index b2146d5e..78f31d1d 100644
--- a/src/slskd/slskd.csproj
+++ b/src/slskd/slskd.csproj
@@ -8,8 +8,7 @@
</PropertyGroup>
<PropertyGroup>
- <TargetFramework>net7.0</TargetFramework>
- <LangVersion>9.0</LangVersion>
+ <TargetFramework>net8.0</TargetFramework>
<CodeAnalysisRuleSet>Properties\analysis.ruleset</CodeAnalysisRuleSet>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsTransformWebConfigDisabled>true</IsTransformWebConfigDisabled>
@@ -17,11 +16,11 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
- <NoWarn>1701;1702;1591;S1133;S2094;S1135</NoWarn>
+ <NoWarn>1701;1702;1591;S1133;S2094;S1135;S3925;S125</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
- <NoWarn>1591;S1133;S2094;S1135</NoWarn>
+ <NoWarn>1591;S1133;S2094;S1135;S3925;S125</NoWarn>
</PropertyGroup>
<ItemGroup>
@@ -43,26 +42,26 @@
</Target>
<ItemGroup>
- <PackageReference Include="FluentFTP" Version="48.0.3" />
+ <PackageReference Include="FluentFTP" Version="49.0.1" />
<PackageReference Include="IPAddressRange" Version="6.0.0" />
- <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.13" />
+ <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.1.0" />
- <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="7.0.13" />
- <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.4">
+ <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="8.0.1" />
+ <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
- <PackageReference Include="Microsoft.Data.Sqlite" Version="7.0.13" />
- <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.13" />
- <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="7.0.13" />
+ <PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.1" />
+ <PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.1" />
+ <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="8.0.1" />
<PackageReference Include="OneOf" Version="3.0.263" />
- <PackageReference Include="prometheus-net" Version="8.2.0" />
- <PackageReference Include="prometheus-net.AspNetCore" Version="8.2.0" />
- <PackageReference Include="prometheus-net.AspNetCore.HealthChecks" Version="8.2.0" />
+ <PackageReference Include="prometheus-net" Version="8.2.1" />
+ <PackageReference Include="prometheus-net.AspNetCore" Version="8.2.1" />
+ <PackageReference Include="prometheus-net.AspNetCore.HealthChecks" Version="8.2.1" />
<PackageReference Include="prometheus-net.DotNetRuntime" Version="4.4.0" />
<PackageReference Include="prometheus-net.SystemMetrics" Version="3.0.0" />
<PackageReference Include="Serilog" Version="3.1.1" />
- <PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
+ <PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
<PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
@@ -74,7 +73,6 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
- <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.1.2" />
<PackageReference Include="TagLibSharp" Version="2.3.0" />
<PackageReference Include="Utility.CommandLine.Arguments" Version="6.0.0" />
<PackageReference Include="Utility.EnvironmentVariables" Version="1.0.5" />
diff --git a/tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj b/tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj
index cfbd7a5a..37eccdd9 100644
--- a/tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj
+++ b/tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net7.0</TargetFramework>
+ <TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
@@ -12,8 +12,8 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
- <PackageReference Include="xunit" Version="2.6.3" />
- <PackageReference Include="xunit.runner.visualstudio" Version="2.5.5">
+ <PackageReference Include="xunit" Version="2.6.6" />
+ <PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
diff --git a/tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj b/tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj
index 776c4e4c..127e0c1d 100644
--- a/tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj
+++ b/tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net7.0</TargetFramework>
+ <TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
@@ -10,8 +10,8 @@
<PackageReference Include="AutoFixture.Xunit2" Version="4.18.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.16.1" />
- <PackageReference Include="xunit" Version="2.6.3" />
- <PackageReference Include="xunit.runner.visualstudio" Version="2.5.5">
+ <PackageReference Include="xunit" Version="2.6.6" />
+ <PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>