diff --git a/Agent/Phantom.Agent.Minecraft/Phantom.Agent.Minecraft.csproj b/Agent/Phantom.Agent.Minecraft/Phantom.Agent.Minecraft.csproj index b8d1d60..1c61a3f 100644 --- a/Agent/Phantom.Agent.Minecraft/Phantom.Agent.Minecraft.csproj +++ b/Agent/Phantom.Agent.Minecraft/Phantom.Agent.Minecraft.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Agent/Phantom.Agent.Rpc/Phantom.Agent.Rpc.csproj b/Agent/Phantom.Agent.Rpc/Phantom.Agent.Rpc.csproj index e80ea42..67af0e7 100644 --- a/Agent/Phantom.Agent.Rpc/Phantom.Agent.Rpc.csproj +++ b/Agent/Phantom.Agent.Rpc/Phantom.Agent.Rpc.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Agent/Phantom.Agent.Services/Phantom.Agent.Services.csproj b/Agent/Phantom.Agent.Services/Phantom.Agent.Services.csproj index efbf2cd..e23555d 100644 --- a/Agent/Phantom.Agent.Services/Phantom.Agent.Services.csproj +++ b/Agent/Phantom.Agent.Services/Phantom.Agent.Services.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Agent/Phantom.Agent/Phantom.Agent.csproj b/Agent/Phantom.Agent/Phantom.Agent.csproj index fabb08c..976eae1 100644 --- a/Agent/Phantom.Agent/Phantom.Agent.csproj +++ b/Agent/Phantom.Agent/Phantom.Agent.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Common/Phantom.Common.Data.Tests/Phantom.Common.Data.Tests.csproj b/Common/Phantom.Common.Data.Tests/Phantom.Common.Data.Tests.csproj index 2a2d8ae..963f2e7 100644 --- a/Common/Phantom.Common.Data.Tests/Phantom.Common.Data.Tests.csproj +++ b/Common/Phantom.Common.Data.Tests/Phantom.Common.Data.Tests.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Common/Phantom.Common.Data/Phantom.Common.Data.csproj b/Common/Phantom.Common.Data/Phantom.Common.Data.csproj index d9b7b1f..f72000c 100644 --- a/Common/Phantom.Common.Data/Phantom.Common.Data.csproj +++ b/Common/Phantom.Common.Data/Phantom.Common.Data.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Common/Phantom.Common.Logging/Phantom.Common.Logging.csproj b/Common/Phantom.Common.Logging/Phantom.Common.Logging.csproj index cfa0bea..488cac5 100644 --- a/Common/Phantom.Common.Logging/Phantom.Common.Logging.csproj +++ b/Common/Phantom.Common.Logging/Phantom.Common.Logging.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Common/Phantom.Common.Messages/Phantom.Common.Messages.csproj b/Common/Phantom.Common.Messages/Phantom.Common.Messages.csproj index 6dd0fc1..cad9d69 100644 --- a/Common/Phantom.Common.Messages/Phantom.Common.Messages.csproj +++ b/Common/Phantom.Common.Messages/Phantom.Common.Messages.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Directory.Build.props b/Directory.Build.props index a7e29af..b0a9b9f 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,7 @@ <Project> <PropertyGroup> + <TargetFramework>net8.0</TargetFramework> <LangVersion>11</LangVersion> </PropertyGroup> diff --git a/Dockerfile b/Dockerfile index 402747a..b28e452 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # +---------------------------+ # | Prepare build environment | # +---------------------------+ -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS phantom-base-builder +FROM mcr.microsoft.com/dotnet/nightly/sdk:8.0-preview AS phantom-base-builder ADD . /app WORKDIR /app @@ -29,7 +29,7 @@ RUN dotnet publish Server/Phantom.Server/Phantom.Server.csproj -c Release -o /ap # +------------------------------+ # | Finalize Phantom Agent image | # +------------------------------+ -FROM mcr.microsoft.com/dotnet/runtime:7.0 AS phantom-agent +FROM mcr.microsoft.com/dotnet/nightly/runtime:8.0-preview AS phantom-agent RUN mkdir /data && chmod 777 /data WORKDIR /data @@ -56,7 +56,7 @@ ENTRYPOINT ["dotnet", "/app/Phantom.Agent.dll"] # +-------------------------------+ # | Finalize Phantom Server image | # +-------------------------------+ -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS phantom-server +FROM mcr.microsoft.com/dotnet/nightly/aspnet:8.0-preview AS phantom-server RUN mkdir /data && chmod 777 /data WORKDIR /data diff --git a/Server/Phantom.Server.Database.Postgres/Phantom.Server.Database.Postgres.csproj b/Server/Phantom.Server.Database.Postgres/Phantom.Server.Database.Postgres.csproj index c3f972e..04d8342 100644 --- a/Server/Phantom.Server.Database.Postgres/Phantom.Server.Database.Postgres.csproj +++ b/Server/Phantom.Server.Database.Postgres/Phantom.Server.Database.Postgres.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server.Database/Phantom.Server.Database.csproj b/Server/Phantom.Server.Database/Phantom.Server.Database.csproj index c9de903..6b47d41 100644 --- a/Server/Phantom.Server.Database/Phantom.Server.Database.csproj +++ b/Server/Phantom.Server.Database/Phantom.Server.Database.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server.Minecraft/Phantom.Server.Minecraft.csproj b/Server/Phantom.Server.Minecraft/Phantom.Server.Minecraft.csproj index b18f053..ecb75fd 100644 --- a/Server/Phantom.Server.Minecraft/Phantom.Server.Minecraft.csproj +++ b/Server/Phantom.Server.Minecraft/Phantom.Server.Minecraft.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server.Rpc/Phantom.Server.Rpc.csproj b/Server/Phantom.Server.Rpc/Phantom.Server.Rpc.csproj index dd2d925..ec346cb 100644 --- a/Server/Phantom.Server.Rpc/Phantom.Server.Rpc.csproj +++ b/Server/Phantom.Server.Rpc/Phantom.Server.Rpc.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server.Services/Phantom.Server.Services.csproj b/Server/Phantom.Server.Services/Phantom.Server.Services.csproj index eb9d99c..becfc66 100644 --- a/Server/Phantom.Server.Services/Phantom.Server.Services.csproj +++ b/Server/Phantom.Server.Services/Phantom.Server.Services.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server.Web.Bootstrap/Phantom.Server.Web.Bootstrap.proj b/Server/Phantom.Server.Web.Bootstrap/Phantom.Server.Web.Bootstrap.proj index c7ef997..8067e6c 100644 --- a/Server/Phantom.Server.Web.Bootstrap/Phantom.Server.Web.Bootstrap.proj +++ b/Server/Phantom.Server.Web.Bootstrap/Phantom.Server.Web.Bootstrap.proj @@ -1,9 +1,5 @@ <Project> - <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> - </PropertyGroup> - <ItemGroup> <None Include="**" /> </ItemGroup> diff --git a/Server/Phantom.Server.Web.Components/Phantom.Server.Web.Components.csproj b/Server/Phantom.Server.Web.Components/Phantom.Server.Web.Components.csproj index 82e6b1b..2282e63 100644 --- a/Server/Phantom.Server.Web.Components/Phantom.Server.Web.Components.csproj +++ b/Server/Phantom.Server.Web.Components/Phantom.Server.Web.Components.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk.Razor"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server.Web.Identity/Phantom.Server.Web.Identity.csproj b/Server/Phantom.Server.Web.Identity/Phantom.Server.Web.Identity.csproj index 197563f..70f7374 100644 --- a/Server/Phantom.Server.Web.Identity/Phantom.Server.Web.Identity.csproj +++ b/Server/Phantom.Server.Web.Identity/Phantom.Server.Web.Identity.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server.Web/Phantom.Server.Web.csproj b/Server/Phantom.Server.Web/Phantom.Server.Web.csproj index 24c5f48..87715e2 100644 --- a/Server/Phantom.Server.Web/Phantom.Server.Web.csproj +++ b/Server/Phantom.Server.Web/Phantom.Server.Web.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Server/Phantom.Server/Phantom.Server.csproj b/Server/Phantom.Server/Phantom.Server.csproj index f2fdaff..c37c889 100644 --- a/Server/Phantom.Server/Phantom.Server.csproj +++ b/Server/Phantom.Server/Phantom.Server.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Utils/Phantom.Utils.Events/Phantom.Utils.Events.csproj b/Utils/Phantom.Utils.Events/Phantom.Utils.Events.csproj index 17a0642..3b760fc 100644 --- a/Utils/Phantom.Utils.Events/Phantom.Utils.Events.csproj +++ b/Utils/Phantom.Utils.Events/Phantom.Utils.Events.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Utils/Phantom.Utils.Rpc/Phantom.Utils.Rpc.csproj b/Utils/Phantom.Utils.Rpc/Phantom.Utils.Rpc.csproj index 82d3e5d..523ab4e 100644 --- a/Utils/Phantom.Utils.Rpc/Phantom.Utils.Rpc.csproj +++ b/Utils/Phantom.Utils.Rpc/Phantom.Utils.Rpc.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Utils/Phantom.Utils.Tests/Phantom.Utils.Tests.csproj b/Utils/Phantom.Utils.Tests/Phantom.Utils.Tests.csproj index 1a5aa73..0e44da1 100644 --- a/Utils/Phantom.Utils.Tests/Phantom.Utils.Tests.csproj +++ b/Utils/Phantom.Utils.Tests/Phantom.Utils.Tests.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/Utils/Phantom.Utils/Phantom.Utils.csproj b/Utils/Phantom.Utils/Phantom.Utils.csproj index d407ef5..0f10a78 100644 --- a/Utils/Phantom.Utils/Phantom.Utils.csproj +++ b/Utils/Phantom.Utils/Phantom.Utils.csproj @@ -1,7 +1,6 @@ <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <TargetFramework>net7.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> diff --git a/global.json b/global.json index 38e4960..e30c726 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.0", + "version": "8.0.0", "rollForward": "latestMinor", "allowPrerelease": true }