From fa3429623383262c744bbd1752d75549ce474383 Mon Sep 17 00:00:00 2001 From: Zack Schwartz Date: Mon, 11 Dec 2023 11:56:05 -0600 Subject: [PATCH] Upgrades runtime to .net 8 #160 --- Dockerfile | 10 +++----- docfx_project/articles/installation.md | 2 +- .../Raytha.Application.csproj | 20 ++++++++-------- src/Raytha.Domain/Raytha.Domain.csproj | 2 +- .../Raytha.Infrastructure.csproj | 10 ++++---- src/Raytha.Web/Raytha.Web.csproj | 24 ++++++++++--------- .../Raytha.Domain.UnitTests.csproj | 2 +- 7 files changed, 34 insertions(+), 36 deletions(-) diff --git a/Dockerfile b/Dockerfile index 296d0245..793c9300 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS publish +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS publish WORKDIR /src RUN apt update @@ -18,13 +18,9 @@ COPY ["src/Raytha.Web/Raytha.Web.csproj", "src/Raytha.Web/"] COPY ["tests/Raytha.Domain.UnitTests/Raytha.Domain.UnitTests.csproj", "tests/Raytha.Domain.UnitTests/"] COPY ["Raytha.sln", ""] -ARG DOTNET_RESTORE_CLI_ARGS= -RUN dotnet restore "Raytha.sln" $DOTNET_RESTORE_CLI_ARGS - COPY . . -RUN dotnet build "Raytha.sln" -c Release --no-restore -RUN dotnet publish -c Release --no-build -o /app "src/Raytha.Web/Raytha.Web.csproj" +RUN dotnet publish -c Release -o /app "src/Raytha.Web/Raytha.Web.csproj" FROM base AS final WORKDIR /app diff --git a/docfx_project/articles/installation.md b/docfx_project/articles/installation.md index 39b56009..0843d3ec 100644 --- a/docfx_project/articles/installation.md +++ b/docfx_project/articles/installation.md @@ -2,7 +2,7 @@ A priority of Raytha is to keep the technology footprint small for getting up and running as quickly as possible. However, you do need the minimum requirements listed below: -* .NET 6+ +* .NET 8+ * npm for compiling javascript * SQL Server Express * [SMTP](/articles/smtp.md) diff --git a/src/Raytha.Application/Raytha.Application.csproj b/src/Raytha.Application/Raytha.Application.csproj index 781162a0..797ed80b 100644 --- a/src/Raytha.Application/Raytha.Application.csproj +++ b/src/Raytha.Application/Raytha.Application.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 Raytha.Application Raytha.Application enable @@ -18,15 +18,15 @@ - - - - - - - - - + + + + + + + + + diff --git a/src/Raytha.Domain/Raytha.Domain.csproj b/src/Raytha.Domain/Raytha.Domain.csproj index fc247064..f350c8dc 100644 --- a/src/Raytha.Domain/Raytha.Domain.csproj +++ b/src/Raytha.Domain/Raytha.Domain.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 Raytha.Domain Raytha.Domain enable diff --git a/src/Raytha.Infrastructure/Raytha.Infrastructure.csproj b/src/Raytha.Infrastructure/Raytha.Infrastructure.csproj index adc78828..be69bc7e 100644 --- a/src/Raytha.Infrastructure/Raytha.Infrastructure.csproj +++ b/src/Raytha.Infrastructure/Raytha.Infrastructure.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 Raytha.Infrastructure Raytha.Infrastructure enable @@ -17,10 +17,10 @@ - - - - + + + + diff --git a/src/Raytha.Web/Raytha.Web.csproj b/src/Raytha.Web/Raytha.Web.csproj index 3023d69f..5930c3e4 100644 --- a/src/Raytha.Web/Raytha.Web.csproj +++ b/src/Raytha.Web/Raytha.Web.csproj @@ -1,28 +1,30 @@ - net6.0 + net8.0 7e3df06b-f996-4ba5-8631-62cd855692f8 Linux Debug;Release;Debug without JS - + - - - - - + + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - + + + diff --git a/tests/Raytha.Domain.UnitTests/Raytha.Domain.UnitTests.csproj b/tests/Raytha.Domain.UnitTests/Raytha.Domain.UnitTests.csproj index 10469b50..fb6f5d3a 100644 --- a/tests/Raytha.Domain.UnitTests/Raytha.Domain.UnitTests.csproj +++ b/tests/Raytha.Domain.UnitTests/Raytha.Domain.UnitTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable