From b52c93c9f7265bd19aea37b635fef058bd5fb41b Mon Sep 17 00:00:00 2001 From: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:26:08 -0800 Subject: [PATCH] Update to .NET 8 --- .github/workflows/maui.yml | 22 ++++---- src/Directory.Build.props | 20 +++++--- src/Directory.Build.targets | 8 +-- src/HackerNews/HackerNews.csproj | 88 ++++++++++++++++---------------- src/global.json | 4 +- 5 files changed, 73 insertions(+), 69 deletions(-) diff --git a/.github/workflows/maui.yml b/.github/workflows/maui.yml index 3ccf79c..a35d2d5 100644 --- a/.github/workflows/maui.yml +++ b/.github/workflows/maui.yml @@ -15,10 +15,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Setup .NET v7.0 + - name: Setup .NET v8.0 uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | @@ -30,7 +30,7 @@ jobs: - name: Build Android App run: | - dotnet build ./src -f net7.0-android + dotnet build ./src -f net8.0-android Build_iOS: runs-on: macos-13 @@ -38,10 +38,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Setup .NET v7.0 + - name: Setup .NET v8.0 uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | @@ -58,7 +58,7 @@ jobs: - name: Build iOS App run: | - dotnet build ./src -f net7.0-ios + dotnet build ./src -f net8.0-ios Build_MacCatalyst: runs-on: macos-13 @@ -66,10 +66,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Setup .NET v7.0 + - name: Setup .NET v8.0 uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | @@ -86,7 +86,7 @@ jobs: - name: Build macOS App run: | - dotnet build ./src -f net7.0-maccatalyst + dotnet build ./src -f net8.0-maccatalyst Build_Windows: runs-on: windows-latest @@ -99,10 +99,10 @@ jobs: distribution: 'microsoft' java-version: '11' - - name: Setup .NET v7.0 + - name: Setup .NET v8.0 uses: actions/setup-dotnet@v3 with: - dotnet-version: "7.0.x" + dotnet-version: "8.0.x" - name: Install .NET MAUI Workload run: | diff --git a/src/Directory.Build.props b/src/Directory.Build.props index facd7ce..9606c74 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,10 +1,16 @@  - - latest - enable - nullable - True - false - + + enable + NETSDK1023 + net8.0 + latest + enable + nullable + true + true + true + false + true + diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index 46d5aff..01b7a10 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -1,24 +1,24 @@  - + - + - + - + diff --git a/src/HackerNews/HackerNews.csproj b/src/HackerNews/HackerNews.csproj index e8be3d7..0c6ba3f 100644 --- a/src/HackerNews/HackerNews.csproj +++ b/src/HackerNews/HackerNews.csproj @@ -1,54 +1,52 @@ - - net7.0-ios;net7.0-android;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041.0 - Exe - HackerNews - true - true - enable + + $(NetVersion)-ios;$(NetVersion)-android;$(NetVersion)-maccatalyst + $(TargetFrameworks);$(NetVersion)-windows10.0.19041.0 + Exe + HackerNews + true + true + enable - HackerNews + HackerNews - com.Minnick.HackerNews - da4c7bba-c5a8-4480-9feb-b4bd874144fb + com.Minnick.HackerNews + da4c7bba-c5a8-4480-9feb-b4bd874144fb - 1 + 1 - 14.2 - 14.0 - 21.0 - 10.0.17763.0 - 10.0.17763.0 - + 14.2 + 14.0 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + - - false - - - - - - - - - - - - - + + false + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + diff --git a/src/global.json b/src/global.json index f1c455d..501e79a 100644 --- a/src/global.json +++ b/src/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.100", - "rollForward": "latestMajor" + "version": "8.0.100", + "rollForward": "latestFeature" } } \ No newline at end of file