From 0c7f3b94a4b9bf4f56df503b8ab7a986ca01e3e6 Mon Sep 17 00:00:00 2001 From: Sailesh B K <101400043+SaileshBK@users.noreply.github.com> Date: Sat, 24 Feb 2024 20:02:37 -0600 Subject: [PATCH] .NET 8 Upgrade #223 (#224) * fix(upgrade): Upgrade to .NET 8 * fix(update): Update dotnetcore.yml * chore(upgrade): Resolved comments * chore(upgrade): Removed redundant line --- .github/workflows/dotnetcore.yml | 4 +- .../UnitystationLauncher.Tests.csproj | 66 +++++++++---------- UnitystationLauncher.sln | 19 ++++-- .../UnitystationLauncher.csproj | 10 +-- 4 files changed, 50 insertions(+), 49 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index ee63068c..c1b0eb90 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -9,7 +9,7 @@ on: - "*" env: - DOTNET_VERSION: '7.0.x' + DOTNET_VERSION: '8.0.x' jobs: test: @@ -115,4 +115,4 @@ jobs: # Build - name: Test Flatpak Build run: | - dotnet publish --framework net7.0 --runtime linux-x64 --configuration Release --self-contained true /p:DefineConstants="FLATPAK" /p:DisableBeauty=true + dotnet publish --framework net8.0 --runtime linux-x64 --configuration Release --self-contained true /p:DefineConstants="FLATPAK" /p:DisableBeauty=true diff --git a/UnitystationLauncher.Tests/UnitystationLauncher.Tests.csproj b/UnitystationLauncher.Tests/UnitystationLauncher.Tests.csproj index 9ae04cb4..a21024ef 100644 --- a/UnitystationLauncher.Tests/UnitystationLauncher.Tests.csproj +++ b/UnitystationLauncher.Tests/UnitystationLauncher.Tests.csproj @@ -1,37 +1,31 @@ - - - net7.0 - enable - - false - false - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - - - - - - - + + net8.0 + enable + false + false + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + + \ No newline at end of file diff --git a/UnitystationLauncher.sln b/UnitystationLauncher.sln index b50bb455..ee6d2124 100644 --- a/UnitystationLauncher.sln +++ b/UnitystationLauncher.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29418.71 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34330.188 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitystationLauncher", "UnitystationLauncher\UnitystationLauncher.csproj", "{B7F5B4B3-BD06-46DF-AD15-634B00004CDB}" EndProject @@ -13,11 +13,12 @@ Global Debug|x64 = Debug|x64 Release|Any CPU = Release|Any CPU Release|x64 = Release|x64 + ReleaseOSX|Any CPU = ReleaseOSX|Any CPU + ReleaseOSX|x64 = ReleaseOSX|x64 ReleasePOSIX64|Any CPU = ReleasePOSIX64|Any CPU ReleasePOSIX64|x64 = ReleasePOSIX64|x64 ReleaseWIN64|Any CPU = ReleaseWIN64|Any CPU ReleaseWIN64|x64 = ReleaseWIN64|x64 - ReleaseOSX|x64 = ReleaseOSX|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -28,6 +29,10 @@ Global {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.Release|Any CPU.Build.0 = Release|Any CPU {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.Release|x64.ActiveCfg = Release|x64 {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.Release|x64.Build.0 = Release|x64 + {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseOSX|Any CPU.ActiveCfg = ReleaseOSX|x64 + {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseOSX|Any CPU.Build.0 = ReleaseOSX|x64 + {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseOSX|x64.ActiveCfg = ReleaseOSX|x64 + {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseOSX|x64.Build.0 = ReleaseOSX|x64 {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleasePOSIX64|Any CPU.ActiveCfg = ReleasePOSIX64|Any CPU {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleasePOSIX64|Any CPU.Build.0 = ReleasePOSIX64|Any CPU {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleasePOSIX64|x64.ActiveCfg = ReleasePOSIX64|x64 @@ -36,8 +41,6 @@ Global {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseWIN64|Any CPU.Build.0 = ReleaseWIN64|Any CPU {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseWIN64|x64.ActiveCfg = ReleaseWIN64|x64 {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseWIN64|x64.Build.0 = ReleaseWIN64|x64 - {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseOSX|x64.ActiveCfg = ReleaseOSX|x64 - {B7F5B4B3-BD06-46DF-AD15-634B00004CDB}.ReleaseOSX|x64.Build.0 = ReleaseOSX|x64 {FC971561-155A-4B54-9977-203EA22663CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.Debug|Any CPU.Build.0 = Debug|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -46,6 +49,10 @@ Global {FC971561-155A-4B54-9977-203EA22663CB}.Release|Any CPU.Build.0 = Release|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.Release|x64.ActiveCfg = Release|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.Release|x64.Build.0 = Release|Any CPU + {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseOSX|Any CPU.ActiveCfg = Release|Any CPU + {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseOSX|Any CPU.Build.0 = Release|Any CPU + {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseOSX|x64.ActiveCfg = Debug|Any CPU + {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseOSX|x64.Build.0 = Debug|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.ReleasePOSIX64|Any CPU.ActiveCfg = Debug|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.ReleasePOSIX64|Any CPU.Build.0 = Debug|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.ReleasePOSIX64|x64.ActiveCfg = Debug|Any CPU @@ -54,8 +61,6 @@ Global {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseWIN64|Any CPU.Build.0 = Debug|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseWIN64|x64.ActiveCfg = Debug|Any CPU {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseWIN64|x64.Build.0 = Debug|Any CPU - {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseOSX|x64.ActiveCfg = Debug|Any CPU - {FC971561-155A-4B54-9977-203EA22663CB}.ReleaseOSX|x64.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/UnitystationLauncher/UnitystationLauncher.csproj b/UnitystationLauncher/UnitystationLauncher.csproj index ca65b505..f387acf3 100644 --- a/UnitystationLauncher/UnitystationLauncher.csproj +++ b/UnitystationLauncher/UnitystationLauncher.csproj @@ -1,7 +1,7 @@ WinExe - net7.0 + net8.0 latest enable enable @@ -24,14 +24,16 @@ False Error - StationHub + StationHub + org.unitystation.hub 1.0.0 1.0.0 APPL ???? StationHub - ian.icns + ian.icns + NSApplication true @@ -118,4 +120,4 @@ InBuiltData - + \ No newline at end of file