diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-12-03 14:33:44 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-03 14:33:44 -0600 |
| commit | 2bb8b42520b6e1b77cf3d1cc5b298d922e23611c (patch) | |
| tree | e43ed72bcf0ca9a11591a7aa74016b87f165f326 | |
| parent | a8c905362dccb37b76e9c6c945f947773d054b4b (diff) | |
| parent | e8cff0c0cb9b5d0cb6f25fdded93728d509d1cbc (diff) | |
| download | slskd-2bb8b42520b6e1b77cf3d1cc5b298d922e23611c.tar.gz | |
Merge pull request #789 from slskd/dotnet7
Upgrade to .NET 7
| -rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
| -rw-r--r-- | Dockerfile | 6 | ||||
| -rw-r--r-- | src/slskd/slskd.csproj | 34 | ||||
| -rw-r--r-- | tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj | 4 | ||||
| -rw-r--r-- | tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj | 2 |
5 files changed, 24 insertions, 24 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fe95bbb..8468254e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: env: - DOTNET_VERSION: '6.0.100' + DOTNET_VERSION: '7.0.100' jobs: build: @@ -1,5 +1,5 @@ # build static web content -FROM node:lts-alpine3.13 AS web +FROM node:lts-alpine3.16 AS web ARG VERSION=0.0.1.65534-local WORKDIR /slskd @@ -12,7 +12,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 mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim-amd64 AS publish +FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim-amd64 AS publish ARG TARGETPLATFORM ARG VERSION=0.0.1.65534-local @@ -31,7 +31,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:6.0-bullseye-slim AS slskd +FROM mcr.microsoft.com/dotnet/runtime-deps:7.0-bullseye-slim AS slskd ARG TARGETPLATFORM ARG TAG=0.0.1 ARG VERSION=0.0.1.65534-local diff --git a/src/slskd/slskd.csproj b/src/slskd/slskd.csproj index d4de18ea..c04a68b7 100644 --- a/src/slskd/slskd.csproj +++ b/src/slskd/slskd.csproj @@ -8,7 +8,7 @@ </PropertyGroup> <PropertyGroup> - <TargetFramework>net6.0</TargetFramework> + <TargetFramework>net7.0</TargetFramework> <LangVersion>9.0</LangVersion> <CodeAnalysisRuleSet>Properties\analysis.ruleset</CodeAnalysisRuleSet> <GenerateDocumentationFile>true</GenerateDocumentationFile> @@ -44,38 +44,38 @@ <ItemGroup> <PackageReference Include="FluentFTP" Version="39.0.1" /> <PackageReference Include="IPAddressRange" Version="4.2.0" /> - <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.7" /> + <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" /> - <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="6.0.9" /> - <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0"> + <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="7.0.0" /> + <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.0-preview1.22518.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> - <PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.7" /> - <PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.7" /> - <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="6.0.7" /> - <PackageReference Include="prometheus-net" Version="6.0.0" /> - <PackageReference Include="prometheus-net.AspNetCore" Version="6.0.0" /> - <PackageReference Include="prometheus-net.AspNetCore.HealthChecks" Version="6.0.0" /> - <PackageReference Include="prometheus-net.DotNetRuntime" Version="4.2.4" /> + <PackageReference Include="Microsoft.Data.Sqlite" Version="7.0.0" /> + <PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0" /> + <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="7.0.0" /> + <PackageReference Include="prometheus-net" Version="7.0.0" /> + <PackageReference Include="prometheus-net.AspNetCore" Version="7.0.0" /> + <PackageReference Include="prometheus-net.AspNetCore.HealthChecks" Version="7.0.0" /> + <PackageReference Include="prometheus-net.DotNetRuntime" Version="4.4.0" /> <PackageReference Include="prometheus-net.SystemMetrics" Version="2.0.0" /> - <PackageReference Include="Serilog" Version="2.11.0" /> - <PackageReference Include="Serilog.AspNetCore" Version="6.0.1" /> + <PackageReference Include="Serilog" Version="2.12.0" /> + <PackageReference Include="Serilog.AspNetCore" Version="6.1.0" /> <PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" /> - <PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" /> + <PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" /> <PackageReference Include="Serilog.Sinks.File" Version="5.0.0" /> <PackageReference Include="Serilog.Sinks.Grafana.Loki" Version="7.1.1" /> <PackageReference Include="Serilog.Sinks.Http" Version="8.0.0" /> <PackageReference Include="Soulseek" Version="6.0.0" /> - <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.354"> + <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> - <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.22.0" /> + <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.1" /> <PackageReference Include="TagLibSharp" Version="2.3.0" /> <PackageReference Include="Utility.CommandLine.Arguments" Version="6.0.0" /> <PackageReference Include="Utility.EnvironmentVariables" Version="1.0.5" /> - <PackageReference Include="YamlDotNet" Version="12.0.0" /> + <PackageReference Include="YamlDotNet" Version="12.0.2" /> </ItemGroup> </Project> diff --git a/tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj b/tests/slskd.Tests.Integration/slskd.Tests.Integration.csproj index db4ad3d3..6b883790 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">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
diff --git a/tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj b/tests/slskd.Tests.Unit/slskd.Tests.Unit.csproj index c3225e74..f5c4f2e2 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>net6.0</TargetFramework>
+ <TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
|
