From dc0693b2f93b057dc4a8d4e92dc3cc04cde34eea Mon Sep 17 00:00:00 2001 From: Bastian Eicher Date: Wed, 27 Dec 2023 21:16:58 +0100 Subject: [PATCH] Added .NET 8.0 build target --- doc/build.ps1 | 2 +- src/Sample/Sample.csproj | 6 +++--- .../StructureEditor.WinForms.csproj | 10 +++++++--- src/StructureEditor/StructureEditor.csproj | 4 ++-- src/UnitTests/UnitTests.csproj | 6 +++--- src/build.ps1 | 2 +- src/test.ps1 | 2 +- 7 files changed, 18 insertions(+), 14 deletions(-) diff --git a/doc/build.ps1 b/doc/build.ps1 index b9cdf0ce..b516bbf0 100644 --- a/doc/build.ps1 +++ b/doc/build.ps1 @@ -2,7 +2,7 @@ pushd $PSScriptRoot function Run-DotNet { - ..\0install.ps1 run --batch --version 6.0.. https://apps.0install.net/dotnet/sdk.xml @args + ..\0install.ps1 run --batch --version 8.0.. https://apps.0install.net/dotnet/sdk.xml @args if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"} } diff --git a/src/Sample/Sample.csproj b/src/Sample/Sample.csproj index 7e0fb66d..459823d6 100644 --- a/src/Sample/Sample.csproj +++ b/src/Sample/Sample.csproj @@ -4,7 +4,7 @@ NanoByte.StructureEditor.Sample NanoByte.StructureEditor.Sample - net48;net6.0-windows + net48;net8.0-windows True WinExe False @@ -14,9 +14,9 @@ - net6.0-windows + net8.0-windows - + enable diff --git a/src/StructureEditor.WinForms/StructureEditor.WinForms.csproj b/src/StructureEditor.WinForms/StructureEditor.WinForms.csproj index c1da790e..049e452f 100644 --- a/src/StructureEditor.WinForms/StructureEditor.WinForms.csproj +++ b/src/StructureEditor.WinForms/StructureEditor.WinForms.csproj @@ -6,16 +6,16 @@ NanoByte.StructureEditor.WinForms WinForms controls for building split-screen editors for data structures WinForms;split-screen;editor;data structures - net45;net6.0-windows + net45;net6.0-windows;net8.0-windows True ..\..\artifacts\$(Configuration)\ - net6.0-windows + net6.0-windows;net8.0-windows False - + enable @@ -43,6 +43,10 @@ lib/net6.0-windows7.0 true + + lib/net8.0-windows7.0 + true + diff --git a/src/StructureEditor/StructureEditor.csproj b/src/StructureEditor/StructureEditor.csproj index 08ff4512..e67efd3d 100644 --- a/src/StructureEditor/StructureEditor.csproj +++ b/src/StructureEditor/StructureEditor.csproj @@ -6,10 +6,10 @@ NanoByte.StructureEditor UI-agnostic base logic for building split-screen editors for data structures split-screen;editor;data structures - net45;net6.0 + net45;net6.0;net8.0 ..\..\artifacts\$(Configuration)\ - + enable diff --git a/src/UnitTests/UnitTests.csproj b/src/UnitTests/UnitTests.csproj index 4eb7575e..cd677989 100644 --- a/src/UnitTests/UnitTests.csproj +++ b/src/UnitTests/UnitTests.csproj @@ -4,7 +4,7 @@ NanoByte.StructureEditor.UnitTests NanoByte.StructureEditor - net48;net6.0-windows + net48;net8.0-windows False False False @@ -12,9 +12,9 @@ - net6.0-windows + net8.0-windows - + enable diff --git a/src/build.ps1 b/src/build.ps1 index 2351869b..693f4bfa 100644 --- a/src/build.ps1 +++ b/src/build.ps1 @@ -12,7 +12,7 @@ function Find-MSBuild { } function Run-DotNet { - ..\0install.ps1 run --batch --version 6.0.. https://apps.0install.net/dotnet/sdk.xml @args + ..\0install.ps1 run --batch --version 8.0.. https://apps.0install.net/dotnet/sdk.xml @args if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"} } diff --git a/src/test.ps1 b/src/test.ps1 index bab6bf05..4f7bd0c8 100644 --- a/src/test.ps1 +++ b/src/test.ps1 @@ -2,7 +2,7 @@ pushd $PSScriptRoot function Run-DotNet { - ..\0install.ps1 run --batch --version 6.0..!6.1 https://apps.0install.net/dotnet/sdk.xml @args + ..\0install.ps1 run --batch --version 8.0..!8.1 https://apps.0install.net/dotnet/sdk.xml @args if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"} }