From 35dd2a1a9ba83923a89e6d9e78ddcaa4b7c9fa9b Mon Sep 17 00:00:00 2001 From: cryptooda Date: Wed, 15 May 2024 20:26:12 +0700 Subject: [PATCH] Update TargetFramework to net8.0 in all projects --- src/Dockerfile-managing-api-dev | 4 ++-- src/Dockerfile-worker-api-dev | 4 ++-- src/Managing.Api.Workers.csproj | 2 +- src/Managing.Api.Workers/Dockerfile | 7 +++---- src/Managing.Api.Workers/Managing.Api.Workers.csproj | 2 +- src/Managing.Api/Dockerfile | 6 ++++-- src/Managing.Api/Managing.Api.csproj | 2 +- .../Managing.Application.Abstractions.csproj | 2 +- .../Managing.Application.Tests.csproj | 2 +- .../Managing.Application.Workers.csproj | 2 +- src/Managing.Application/Managing.Application.csproj | 2 +- src/Managing.Bootstrap/Managing.Bootstrap.csproj | 2 +- src/Managing.Common/Managing.Common.csproj | 2 +- src/Managing.Core/Managing.Core.csproj | 2 +- src/Managing.Domain/Managing.Domain.csproj | 2 +- .../Managing.Infrastructure.Databases.csproj | 2 +- .../Managing.Infrastructure.Exchanges.csproj | 2 +- .../Managing.Infrastructure.Messengers.csproj | 2 +- .../Managing.Infrastructure.Storage.csproj | 2 +- .../Managing.Infrastructure.Tests.csproj | 2 +- .../Managing.Infrastructure.Evm.csproj | 2 +- src/Managing.Tools.ABI/Managing.Tools.ABI.csproj | 2 +- 22 files changed, 29 insertions(+), 28 deletions(-) diff --git a/src/Dockerfile-managing-api-dev b/src/Dockerfile-managing-api-dev index 2c8beeb..7726c8b 100644 --- a/src/Dockerfile-managing-api-dev +++ b/src/Dockerfile-managing-api-dev @@ -1,11 +1,11 @@ # Use the official Microsoft ASP.NET Core runtime as the base image. -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 # Use the official Microsoft .NET SDK image to build the code. -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /buildapp COPY ["/src/Managing.Api/Managing.Api.csproj", "Managing.Api/"] COPY ["/src/Managing.Bootstrap/Managing.Bootstrap.csproj", "Managing.Bootstrap/"] diff --git a/src/Dockerfile-worker-api-dev b/src/Dockerfile-worker-api-dev index ff524fa..ab9c749 100644 --- a/src/Dockerfile-worker-api-dev +++ b/src/Dockerfile-worker-api-dev @@ -1,11 +1,11 @@ # Use the official Microsoft ASP.NET Core runtime as the base image. -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 # Use the official Microsoft .NET SDK image to build the code. -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /buildapp COPY ["/src/Managing.Api.Workers/Managing.Api.Workers.csproj", "Managing.Api.Workers/"] COPY ["/src/Managing.Bootstrap/Managing.Bootstrap.csproj", "Managing.Bootstrap/"] diff --git a/src/Managing.Api.Workers.csproj b/src/Managing.Api.Workers.csproj index c3d9236..563cca7 100644 --- a/src/Managing.Api.Workers.csproj +++ b/src/Managing.Api.Workers.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 3900ce93-de15-49e5-9a61-7dc2209939ca diff --git a/src/Managing.Api.Workers/Dockerfile b/src/Managing.Api.Workers/Dockerfile index 9e6e534..688c5fc 100644 --- a/src/Managing.Api.Workers/Dockerfile +++ b/src/Managing.Api.Workers/Dockerfile @@ -1,11 +1,11 @@ # Use the official Microsoft ASP.NET Core runtime as the base image. -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 # Use the official Microsoft .NET SDK image to build the code. -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Managing.Api.Workers/Managing.Api.Workers.csproj", "Managing.Api.Workers/"] COPY ["Managing.Bootstrap/Managing.Bootstrap.csproj", "Managing.Bootstrap/"] @@ -31,6 +31,5 @@ RUN dotnet publish "Managing.Api.Workers.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -COPY Managing.Api.Workers/managing_cert.pfx . -COPY Managing.Api.Workers/appsettings.Lowpro.json ./appsettings.json +COPY managing_cert.pfx . ENTRYPOINT ["dotnet", "Managing.Api.Workers.dll"] diff --git a/src/Managing.Api.Workers/Managing.Api.Workers.csproj b/src/Managing.Api.Workers/Managing.Api.Workers.csproj index b3b1706..6aa77c8 100644 --- a/src/Managing.Api.Workers/Managing.Api.Workers.csproj +++ b/src/Managing.Api.Workers/Managing.Api.Workers.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 3900ce93-de15-49e5-9a61-7dc2209939ca diff --git a/src/Managing.Api/Dockerfile b/src/Managing.Api/Dockerfile index 4843e36..e16d276 100644 --- a/src/Managing.Api/Dockerfile +++ b/src/Managing.Api/Dockerfile @@ -1,11 +1,11 @@ # Use the official Microsoft ASP.NET Core runtime as the base image. -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 # Use the official Microsoft .NET SDK image to build the code. -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY ["Managing.Api/Managing.Api.csproj", "Managing.Api/"] COPY ["Managing.Bootstrap/Managing.Bootstrap.csproj", "Managing.Bootstrap/"] @@ -35,6 +35,8 @@ RUN dotnet publish "Managing.Api.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . +COPY managing_cert.pfx . + ENTRYPOINT ["dotnet", "Managing.Api.dll"] #RUN ls -la /buildapp diff --git a/src/Managing.Api/Managing.Api.csproj b/src/Managing.Api/Managing.Api.csproj index 4b1e176..286bbfe 100644 --- a/src/Managing.Api/Managing.Api.csproj +++ b/src/Managing.Api/Managing.Api.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 ..\..\docker-compose.dcproj diff --git a/src/Managing.Application.Abstractions/Managing.Application.Abstractions.csproj b/src/Managing.Application.Abstractions/Managing.Application.Abstractions.csproj index 405284d..0578db3 100644 --- a/src/Managing.Application.Abstractions/Managing.Application.Abstractions.csproj +++ b/src/Managing.Application.Abstractions/Managing.Application.Abstractions.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable enable diff --git a/src/Managing.Application.Tests/Managing.Application.Tests.csproj b/src/Managing.Application.Tests/Managing.Application.Tests.csproj index d91fda2..e7fe1e5 100644 --- a/src/Managing.Application.Tests/Managing.Application.Tests.csproj +++ b/src/Managing.Application.Tests/Managing.Application.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU AnyCPU;x64 diff --git a/src/Managing.Application.Workers/Managing.Application.Workers.csproj b/src/Managing.Application.Workers/Managing.Application.Workers.csproj index 75eff83..becdcc9 100644 --- a/src/Managing.Application.Workers/Managing.Application.Workers.csproj +++ b/src/Managing.Application.Workers/Managing.Application.Workers.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable enable diff --git a/src/Managing.Application/Managing.Application.csproj b/src/Managing.Application/Managing.Application.csproj index 6996dc5..ddb82d4 100644 --- a/src/Managing.Application/Managing.Application.csproj +++ b/src/Managing.Application/Managing.Application.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Bootstrap/Managing.Bootstrap.csproj b/src/Managing.Bootstrap/Managing.Bootstrap.csproj index b63fd55..bcad066 100644 --- a/src/Managing.Bootstrap/Managing.Bootstrap.csproj +++ b/src/Managing.Bootstrap/Managing.Bootstrap.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Common/Managing.Common.csproj b/src/Managing.Common/Managing.Common.csproj index b8ca5ae..b484357 100644 --- a/src/Managing.Common/Managing.Common.csproj +++ b/src/Managing.Common/Managing.Common.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Core/Managing.Core.csproj b/src/Managing.Core/Managing.Core.csproj index d0c5e78..57170d6 100644 --- a/src/Managing.Core/Managing.Core.csproj +++ b/src/Managing.Core/Managing.Core.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Domain/Managing.Domain.csproj b/src/Managing.Domain/Managing.Domain.csproj index 7b6d9e0..3c8b789 100644 --- a/src/Managing.Domain/Managing.Domain.csproj +++ b/src/Managing.Domain/Managing.Domain.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj b/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj index 1588232..987fc42 100644 --- a/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj +++ b/src/Managing.Infrastructure.Database/Managing.Infrastructure.Databases.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable enable diff --git a/src/Managing.Infrastructure.Exchanges/Managing.Infrastructure.Exchanges.csproj b/src/Managing.Infrastructure.Exchanges/Managing.Infrastructure.Exchanges.csproj index 936d0fe..ca5fcfa 100644 --- a/src/Managing.Infrastructure.Exchanges/Managing.Infrastructure.Exchanges.csproj +++ b/src/Managing.Infrastructure.Exchanges/Managing.Infrastructure.Exchanges.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Infrastructure.Messengers/Managing.Infrastructure.Messengers.csproj b/src/Managing.Infrastructure.Messengers/Managing.Infrastructure.Messengers.csproj index 2b99e86..53c7e2b 100644 --- a/src/Managing.Infrastructure.Messengers/Managing.Infrastructure.Messengers.csproj +++ b/src/Managing.Infrastructure.Messengers/Managing.Infrastructure.Messengers.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable diff --git a/src/Managing.Infrastructure.Storage/Managing.Infrastructure.Storage.csproj b/src/Managing.Infrastructure.Storage/Managing.Infrastructure.Storage.csproj index 6d28033..aed7c96 100644 --- a/src/Managing.Infrastructure.Storage/Managing.Infrastructure.Storage.csproj +++ b/src/Managing.Infrastructure.Storage/Managing.Infrastructure.Storage.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Infrastructure.Tests/Managing.Infrastructure.Tests.csproj b/src/Managing.Infrastructure.Tests/Managing.Infrastructure.Tests.csproj index 19517b9..15e7d57 100644 --- a/src/Managing.Infrastructure.Tests/Managing.Infrastructure.Tests.csproj +++ b/src/Managing.Infrastructure.Tests/Managing.Infrastructure.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/Managing.Infrastructure.Web3/Managing.Infrastructure.Evm.csproj b/src/Managing.Infrastructure.Web3/Managing.Infrastructure.Evm.csproj index a3bfd05..7bab8ca 100644 --- a/src/Managing.Infrastructure.Web3/Managing.Infrastructure.Evm.csproj +++ b/src/Managing.Infrastructure.Web3/Managing.Infrastructure.Evm.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable enable diff --git a/src/Managing.Tools.ABI/Managing.Tools.ABI.csproj b/src/Managing.Tools.ABI/Managing.Tools.ABI.csproj index 86c1b1a..263c4c6 100644 --- a/src/Managing.Tools.ABI/Managing.Tools.ABI.csproj +++ b/src/Managing.Tools.ABI/Managing.Tools.ABI.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 enable enable