From 5a6fca6fa7462682484b9c54cf1ea51a1f37e304 Mon Sep 17 00:00:00 2001 From: Macocian Alexandru Victor Date: Mon, 8 Dec 2025 22:25:55 +0100 Subject: [PATCH] Upgrade to .net 10 (#1089) --- .github/workflows/cd.yaml | 2 +- .github/workflows/ci.yaml | 2 +- Daybreak/Services/ExceptionHandling/ExceptionHandler.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 6ed0c09a..0b854d80 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -58,7 +58,7 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '9.x' + dotnet-version: '10.x' - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v2.0.0 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 26b4ebaf..94fb1138 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,7 +39,7 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v4 with: - dotnet-version: '9.x' + dotnet-version: '10.x' architecture: x86 - name: Setup MSBuild.exe diff --git a/Daybreak/Services/ExceptionHandling/ExceptionHandler.cs b/Daybreak/Services/ExceptionHandling/ExceptionHandler.cs index 8cdf1bb3..2022326c 100644 --- a/Daybreak/Services/ExceptionHandling/ExceptionHandler.cs +++ b/Daybreak/Services/ExceptionHandling/ExceptionHandler.cs @@ -90,7 +90,7 @@ internal sealed class ExceptionHandler( Global.CoreWebView2.Reload(); return HandleResult.Handled; } - else if (e.Message.Contains("Invalid window handle.") && e.StackTrace?.Contains("CoreWebView2Environment.CreateCoreWebView2ControllerAsync") is true) + else if (e?.Message.Contains("Invalid window handle.") is true && e.StackTrace?.Contains("CoreWebView2Environment.CreateCoreWebView2ControllerAsync") is true) { logger.LogError(e, "Failed to initialize browser"); return HandleResult.Handled;