From dbc92d118da38a404c4d247cbe52b4841261e3f3 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Wed, 14 Oct 2026 15:32:46 +1300 Subject: [PATCH 1/9] feat: add support for .NET 11 RC 2 Bumps the SDK, workload set and prerelease Microsoft.* package references from RC 1 to RC 2. The RC 2 Apple packs (27.0.12212) only accept platform version 27.0 and require Xcode 27.0, so the iOS and Mac Catalyst TFMs move to 27.0 everywhere the version is spelled out. The macos-26 runner image tops out at Xcode 26.6, so the macOS jobs move to the preview xcode-27 image. XHarness 26117.1's mlaunch can't start the simulator under Xcode 27, which replaced Simulator.app with DeviceHub.app, and reports the failure as APP_CRASH. 26506.3 handles it. Co-Authored-By: Claude Opus 5.5 --- .github/actions/environment/action.yml | 4 ++-- .github/workflows/build.yml | 6 +++--- .github/workflows/device-tests-ios.yml | 2 +- .github/workflows/format-code.yml | 2 +- .github/workflows/verify-api.yml | 2 +- .github/workflows/vulnerabilities.yml | 2 +- Directory.Build.props | 4 ++-- global.json | 4 ++-- integration-test/common.ps1 | 2 +- integration-test/ios.Tests.ps1 | 4 ++-- .../Sentry.Maui.Device.IntegrationTestApp.csproj | 2 +- .../Sentry.Samples.AspNetCore.Blazor.Wasm.csproj | 4 ++-- scripts/device-test-utils.ps1 | 4 ++-- .../Sentry.AspNetCore.Blazor.WebAssembly.csproj | 2 +- .../Sentry.Extensions.Logging.csproj | 6 +++--- .../Sentry.AspNetCore.Grpc.Tests.csproj | 2 +- .../Sentry.AspNetCore.TestUtils.csproj | 2 +- .../Testing/ReferenceAssembliesExtensions.cs | 2 +- .../Sentry.DiagnosticSource.IntegrationTests.csproj | 4 ++-- .../Sentry.DiagnosticSource.Tests.csproj | 4 ++-- .../Sentry.Maui.Device.TestApp.csproj | 2 +- 21 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/actions/environment/action.yml b/.github/actions/environment/action.yml index 90b963bc05..4468bfb92b 100644 --- a/.github/actions/environment/action.yml +++ b/.github/actions/environment/action.yml @@ -38,12 +38,12 @@ runs: sudo apt-get update sudo apt-get install -y gcc-arm-linux-gnueabihf libc6:armhf - # See https://github.com/actions/runner-images/blob/main/images/macos/macos-26-Readme.md#xcode + # See https://github.com/actions/runner-images/blob/main/images/macos/xcode-27-arm64-Readme.md#xcode # Also https://github.com/dotnet/macios/issues/21762#issuecomment-3424033859 (don't reference symlinks) - name: Pin the Xcode Version if: runner.os == 'macOS' shell: bash - run: sudo xcode-select --switch /Applications/Xcode_26.6.app + run: sudo xcode-select --switch /Applications/Xcode_27.app # Java 21 is needed by .NET Android - name: Install Java 21 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d200760635..3f06645847 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: volumes: - /tmp/node20:/__e/node20 - /tmp/node24:/__e/node24 - - os: macos-26 # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703 + - os: xcode-27 # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703 rid: macos # universal (osx-arm64 + osx-x64) - os: windows-2025-vs2026 rid: win-x64 @@ -118,7 +118,7 @@ jobs: - /tmp/node20:/__e/node20 - /tmp/node24:/__e/node24 - /var/run/docker.sock:/var/run/docker.sock - - os: macos-26 # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703 + - os: xcode-27 # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703 rid: macos # universal (osx-arm64 + osx-x64) slnf: Sentry-CI-Build-macOS.slnf # .NET 10+ Native AOT requires VS 2026 (https://github.com/dotnet/runtime/issues/133835) @@ -421,7 +421,7 @@ jobs: trim-analysis: needs: build-sentry-native name: Trim analysis - runs-on: macos-26 + runs-on: xcode-27 steps: - name: Checkout diff --git a/.github/workflows/device-tests-ios.yml b/.github/workflows/device-tests-ios.yml index 68a3d54342..4218cd1252 100644 --- a/.github/workflows/device-tests-ios.yml +++ b/.github/workflows/device-tests-ios.yml @@ -51,7 +51,7 @@ on: jobs: ios-tests: - runs-on: macos-26 + runs-on: xcode-27 env: DOTNET_CLI_TELEMETRY_OPTOUT: 1 DOTNET_NOLOGO: 1 diff --git a/.github/workflows/format-code.yml b/.github/workflows/format-code.yml index fc7e7554d6..c04ae0c41c 100644 --- a/.github/workflows/format-code.yml +++ b/.github/workflows/format-code.yml @@ -18,7 +18,7 @@ jobs: name: Format Code # Run on 'macos' because Linux is missing the `ios` workload: https://github.com/dotnet/runtime/issues/85505 # Pin macos to get the version of XCode that we need: https://github.com/actions/runner-images/issues/10703 - runs-on: macos-26 + runs-on: xcode-27 steps: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.github/workflows/verify-api.yml b/.github/workflows/verify-api.yml index 906f18fc35..26195cd2b7 100644 --- a/.github/workflows/verify-api.yml +++ b/.github/workflows/verify-api.yml @@ -26,7 +26,7 @@ jobs: matrix: include: # macOS covers all non-Windows TFMs (net8.0 - net11.0, netstandard, iOS, MacCatalyst, Android) - - os: macos-26 + - os: xcode-27 rid: macos slnf: Sentry-CI-Build-macOS.slnf # Windows is required to produce the .NET Framework (net48 / Net4_8) verified files diff --git a/.github/workflows/vulnerabilities.yml b/.github/workflows/vulnerabilities.yml index 2183f697d7..27407afa7c 100644 --- a/.github/workflows/vulnerabilities.yml +++ b/.github/workflows/vulnerabilities.yml @@ -18,7 +18,7 @@ jobs: list-vulnerable-packages: name: List vulnerable packages # Pin macos to get the version of XCode that we need: https://github.com/actions/runner-images/issues/10703 - runs-on: macos-26 + runs-on: xcode-27 steps: - name: Checkout diff --git a/Directory.Build.props b/Directory.Build.props index b7acd622dd..cd4949ab77 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -40,9 +40,9 @@ net8.0;net9.0;net10.0;net11.0 net11.0-android37.0 net10.0-android36.0 - net11.0-ios26.5 + net11.0-ios27.0 net10.0-ios26 - net11.0-maccatalyst26.5 + net11.0-maccatalyst27.0 net10.0-maccatalyst26 net11.0-windows10.0.19041.0 net10.0-windows10.0.19041.0 diff --git a/global.json b/global.json index 572b7c5db5..06b736dcca 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "11.0.100-rc.1.26425.128", - "workloadVersion": "11.0.100-rc.1.26458.5", + "version": "11.0.100-rc.2.26504.105", + "workloadVersion": "11.0.100-rc.2.26509.2", "rollForward": "disable", "allowPrerelease": false } diff --git a/integration-test/common.ps1 b/integration-test/common.ps1 index c5d987b576..c1f3bf3a26 100644 --- a/integration-test/common.ps1 +++ b/integration-test/common.ps1 @@ -26,7 +26,7 @@ BeforeAll { { switch ($framework) { 'net10.0' { return '26' } # matches PreviousIosTfm / PreviousMacCatalystTfm - 'net11.0' { return '26.5' } # matches LatestIosTfm / LatestMacCatalystTfm + 'net11.0' { return '27.0' } # matches LatestIosTfm / LatestMacCatalystTfm default { throw "Unsupported framework '$framework' for iOS target platform version." } } } diff --git a/integration-test/ios.Tests.ps1 b/integration-test/ios.Tests.ps1 index c71103bbe4..36657ba96e 100644 --- a/integration-test/ios.Tests.ps1 +++ b/integration-test/ios.Tests.ps1 @@ -20,8 +20,8 @@ Describe 'iOS app (, , )' -ForEach @( # UseMonoRuntime property was removed. Mono on iOS is therefore covered only by net10.0, which # this job can't build alongside net11.0 because of the Xcode pinning noted above. See # https://devblogs.microsoft.com/dotnet/coreclr-progress-and-mono-timeline-dotnet-maui/ - @{ tfm = "net11.0-ios26.5"; configuration = "Release"; runtime = "coreclr" } - @{ tfm = "net11.0-ios26.5"; configuration = "Debug"; runtime = "coreclr" } + @{ tfm = "net11.0-ios27.0"; configuration = "Release"; runtime = "coreclr" } + @{ tfm = "net11.0-ios27.0"; configuration = "Debug"; runtime = "coreclr" } ) -Skip:(-not $script:simulator) { BeforeAll { . $PSScriptRoot/../scripts/device-test-utils.ps1 diff --git a/integration-test/maui-device/Sentry.Maui.Device.IntegrationTestApp.csproj b/integration-test/maui-device/Sentry.Maui.Device.IntegrationTestApp.csproj index ac36d1f4cd..1f8cecfec4 100644 --- a/integration-test/maui-device/Sentry.Maui.Device.IntegrationTestApp.csproj +++ b/integration-test/maui-device/Sentry.Maui.Device.IntegrationTestApp.csproj @@ -5,7 +5,7 @@ - $(TargetFrameworks);net11.0-ios26.5 + $(TargetFrameworks);net11.0-ios27.0 Exe Sentry.Maui.Device.IntegrationTestApp diff --git a/samples/Sentry.Samples.AspNetCore.Blazor.Wasm/Sentry.Samples.AspNetCore.Blazor.Wasm.csproj b/samples/Sentry.Samples.AspNetCore.Blazor.Wasm/Sentry.Samples.AspNetCore.Blazor.Wasm.csproj index f94e9d203f..64fbca7950 100644 --- a/samples/Sentry.Samples.AspNetCore.Blazor.Wasm/Sentry.Samples.AspNetCore.Blazor.Wasm.csproj +++ b/samples/Sentry.Samples.AspNetCore.Blazor.Wasm/Sentry.Samples.AspNetCore.Blazor.Wasm.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/scripts/device-test-utils.ps1 b/scripts/device-test-utils.ps1 index 265294da47..42fde54afd 100644 --- a/scripts/device-test-utils.ps1 +++ b/scripts/device-test-utils.ps1 @@ -4,7 +4,7 @@ function Install-XHarness { $CI = Test-Path env:CI Push-Location ($CI ? $env:RUNNER_TEMP : $IsWindows ? $env:TMP : $IsMacos ? $env:TMPDIR : '/tmp') - dotnet tool install Microsoft.DotNet.XHarness.CLI --global --version '11.0.0-prerelease.26117.1' ` + dotnet tool install Microsoft.DotNet.XHarness.CLI --global --version '11.0.0-prerelease.26506.3' ` --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json Pop-Location } @@ -29,7 +29,7 @@ function Get-AndroidEmulatorId function Get-IosSimulatorUdid { [CmdletBinding()] param( - [string]$IosVersion = '26.5', + [string]$IosVersion = '27.0', [string[]]$PreferredDeviceTypes = @( 'com.apple.CoreSimulator.SimDeviceType.iPhone-11', 'com.apple.CoreSimulator.SimDeviceType.iPhone-16', diff --git a/src/Sentry.AspNetCore.Blazor.WebAssembly/Sentry.AspNetCore.Blazor.WebAssembly.csproj b/src/Sentry.AspNetCore.Blazor.WebAssembly/Sentry.AspNetCore.Blazor.WebAssembly.csproj index 202ca51270..6b89da8b12 100644 --- a/src/Sentry.AspNetCore.Blazor.WebAssembly/Sentry.AspNetCore.Blazor.WebAssembly.csproj +++ b/src/Sentry.AspNetCore.Blazor.WebAssembly/Sentry.AspNetCore.Blazor.WebAssembly.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/Sentry.Extensions.Logging/Sentry.Extensions.Logging.csproj b/src/Sentry.Extensions.Logging/Sentry.Extensions.Logging.csproj index 20c129b350..e307dd24d5 100644 --- a/src/Sentry.Extensions.Logging/Sentry.Extensions.Logging.csproj +++ b/src/Sentry.Extensions.Logging/Sentry.Extensions.Logging.csproj @@ -33,9 +33,9 @@ - - - + + + diff --git a/test/Sentry.AspNetCore.Grpc.Tests/Sentry.AspNetCore.Grpc.Tests.csproj b/test/Sentry.AspNetCore.Grpc.Tests/Sentry.AspNetCore.Grpc.Tests.csproj index 96afaffc8f..bf0219421b 100644 --- a/test/Sentry.AspNetCore.Grpc.Tests/Sentry.AspNetCore.Grpc.Tests.csproj +++ b/test/Sentry.AspNetCore.Grpc.Tests/Sentry.AspNetCore.Grpc.Tests.csproj @@ -12,7 +12,7 @@ - + diff --git a/test/Sentry.AspNetCore.TestUtils/Sentry.AspNetCore.TestUtils.csproj b/test/Sentry.AspNetCore.TestUtils/Sentry.AspNetCore.TestUtils.csproj index 2664f5fb06..2f9036de6e 100644 --- a/test/Sentry.AspNetCore.TestUtils/Sentry.AspNetCore.TestUtils.csproj +++ b/test/Sentry.AspNetCore.TestUtils/Sentry.AspNetCore.TestUtils.csproj @@ -59,7 +59,7 @@ - + diff --git a/test/Sentry.Compiler.Extensions.Tests/Testing/ReferenceAssembliesExtensions.cs b/test/Sentry.Compiler.Extensions.Tests/Testing/ReferenceAssembliesExtensions.cs index c6bb854101..5307ab6170 100644 --- a/test/Sentry.Compiler.Extensions.Tests/Testing/ReferenceAssembliesExtensions.cs +++ b/test/Sentry.Compiler.Extensions.Tests/Testing/ReferenceAssembliesExtensions.cs @@ -13,7 +13,7 @@ internal static class ReferenceAssembliesExtensions // package catches up. private static readonly ReferenceAssemblies Net110 = new( "net11.0", - new PackageIdentity("Microsoft.NETCore.App.Ref", "11.0.0-rc.1.26425.128"), + new PackageIdentity("Microsoft.NETCore.App.Ref", "11.0.0-rc.2.26504.105"), Path.Combine("ref", "net11.0")); #endif diff --git a/test/Sentry.DiagnosticSource.IntegrationTests/Sentry.DiagnosticSource.IntegrationTests.csproj b/test/Sentry.DiagnosticSource.IntegrationTests/Sentry.DiagnosticSource.IntegrationTests.csproj index 7e4d985c4c..2bfa21116c 100644 --- a/test/Sentry.DiagnosticSource.IntegrationTests/Sentry.DiagnosticSource.IntegrationTests.csproj +++ b/test/Sentry.DiagnosticSource.IntegrationTests/Sentry.DiagnosticSource.IntegrationTests.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/test/Sentry.DiagnosticSource.Tests/Sentry.DiagnosticSource.Tests.csproj b/test/Sentry.DiagnosticSource.Tests/Sentry.DiagnosticSource.Tests.csproj index f4deb66d81..7fc3d0eb73 100644 --- a/test/Sentry.DiagnosticSource.Tests/Sentry.DiagnosticSource.Tests.csproj +++ b/test/Sentry.DiagnosticSource.Tests/Sentry.DiagnosticSource.Tests.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/test/Sentry.Maui.Device.TestApp/Sentry.Maui.Device.TestApp.csproj b/test/Sentry.Maui.Device.TestApp/Sentry.Maui.Device.TestApp.csproj index 96b75a6373..ef8c3fbe71 100644 --- a/test/Sentry.Maui.Device.TestApp/Sentry.Maui.Device.TestApp.csproj +++ b/test/Sentry.Maui.Device.TestApp/Sentry.Maui.Device.TestApp.csproj @@ -38,7 +38,7 @@ 24.0 - 26.5 + 27.0 true - $(SentryCLIUploadItems) $(IntermediateOutputPath)linked/*.pdb + $(SentryCLIUploadItems) $(IntermediateOutputPath)linked/*.pdb $(SentryCLIUploadItems) $(IntermediateOutputPath)postprocessed-assemblies/*.pdb $(SentryCLIUploadItems) @(AndroidNativeSymbolFilesExceptDll -> '%(Identity)', ' ') From b5200542ff988e2417a9295902e78491ec1b0616 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Wed, 14 Oct 2026 15:33:16 +1300 Subject: [PATCH 5/9] fix: upload symbols and create releases when publishing Native AOT with the .NET 11 SDK From RC 2 the .NET 11 SDK publishes Native AOT apps without running Build: UseOptimizedPublish defaults to true when PublishAot is set, and Publish depends on _PublishOptimizedBuildAlternative, which runs only Compile and the publish targets (dotnet/sdk#54515). CheckSentryCLI, which every upload and release target depends on, hooked AfterTargets="Build", so the symbol upload silently stopped. This is decided by the SDK, not the TFM, so net8.0-net10.0 apps published with the .NET 11 SDK are affected too. CheckSentryCLI and the release targets now also run after _PublishOptimizedBuildAlternative. Caught by the native AOT publish cases in cli.Tests.ps1, which failed for both net10.0 and net11.0. Co-Authored-By: Claude Opus 5.5 --- src/Sentry/buildTransitive/Sentry.targets | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Sentry/buildTransitive/Sentry.targets b/src/Sentry/buildTransitive/Sentry.targets index dd6dbaa9db..918f19eafa 100644 --- a/src/Sentry/buildTransitive/Sentry.targets +++ b/src/Sentry/buildTransitive/Sentry.targets @@ -21,6 +21,8 @@ $([System.Guid]::NewGuid()) true false + + <_SentryAfterBuildTargets>Build;_PublishOptimizedBuildAlternative - + false @@ -377,7 +379,7 @@ <_SentryRelease Condition="'$(_SentryRelease)' == '' And '$(SENTRY_RELEASE)' != ''">$(SENTRY_RELEASE) - + @@ -396,7 +398,7 @@ - - Date: Wed, 14 Oct 2026 15:33:24 +1300 Subject: [PATCH 6/9] docs: extend the .NET upgrade checklist with the RC 2 breakages Co-Authored-By: Claude Opus 5.5 --- CONTRIBUTING.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 63b5d092c9..6fac9d42b8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -235,7 +235,12 @@ they cost nothing, and the next LTS transition brings some of those versions bac | Test hosts fail to start: `You must install or update .NET` | `.github/actions/environment/action.yml` | Once `global.json` pins the new SDK, the previous runtime no longer comes with it, but we still target and test it. Add `{N-1}.0.x` to `dotnet-version`. Most runners have it preinstalled, so this usually only shows up on the Alpine containers. | | `XA4216` deployment target not supported / `SupportedOSPlatformVersion` lower than minimum | `Directory.Build.props` **and** `Directory.Build.targets` | Platform minimums rise with each release. Condition the new value on the new TFM so existing consumers aren't affected — see the Android and MacCatalyst entries there. These are user-facing breaking changes; add them to the PR's `### Changelog Entry`. | | `NETSDK1094` / `NETSDK1096` optimizing assemblies for performance failed | app `.csproj`s with an Android TFM | ReadyToRun can't target Android at all (`crossgen2`: `Target OS 'android' is not supported`), but the SDK may enable it by default. Set `PublishReadyToRun=false` on the affected app. | -| iOS app builds fail with `requires Xcode X, the current version is Y` | `integration-test/*.ps1`, device test apps | Each .NET for iOS SDK pack pins an **exact** Xcode version, so only one iOS TFM is buildable on a given machine. Build the TFM matching the Xcode that CI pins, and don't try to cover two. Libraries skip this check, which is why only app builds are affected. | +| iOS app builds fail with `requires Xcode X, the current version is Y` | `integration-test/*.ps1`, device test apps | Each .NET for iOS SDK pack pins an **exact** Xcode version, so only one iOS TFM is buildable on a given machine. Build the TFM matching the Xcode that CI pins, and don't try to cover two. Libraries skip this check, which is why only app builds are affected. When an RC needs an Xcode the `macos-*` images don't carry yet, move the macOS jobs to the matching preview image (.NET 11 RC 2 needed `xcode-27`) and update the `Pin the Xcode Version` step in `.github/actions/environment/action.yml`. | +| `NETSDK1140` X is not a valid TargetPlatformVersion for ios | `Directory.Build.props`, `test/Sentry.Maui.Device.TestApp`, `integration-test/common.ps1`, `integration-test/ios.Tests.ps1`, `integration-test/maui-device`, `scripts/device-test-utils.ps1` | An Apple pack accepts only its own platform version, so when an RC moves to a new Xcode (.NET 11 RC 2 went from 26.5 to 27.0) the old TFM stops resolving. The version is spelled out in every one of those places; update them together. | +| iOS app never gets past the launch screen | app `Info.plist`s | Apps built with Xcode 27 must adopt the UIScene lifecycle. Add a `UIApplicationSceneManifest` and a `SceneDelegate` (a `MauiUISceneDelegate` subclass for MAUI apps), as the MAUI templates do. App-level activation callbacks such as `UIApplicationDelegate.OnActivated` stop firing under scenes; move them to the scene delegate. | +| iOS device tests fail with XHarness exit code 80 (`APP_CRASH`) and `Simulator.app could not be launched because it was not found` | `scripts/device-test-utils.ps1` | The app never started: the `mlaunch` bundled with XHarness predates the new Xcode. Xcode 27 replaced `Simulator.app` with `DeviceHub.app`. Bump the pinned XHarness. `Install-XHarness` skips the install whenever any `xharness` is on the `PATH`, so update a local global install too. | +| Native AOT publish uploads no symbols, and `cli.Tests.ps1` can't find `Preparing upload to Sentry` | `src/Sentry/buildTransitive/Sentry.targets` | Check which targets `dotnet publish` actually runs. From .NET 11 RC 2 the SDK publishes Native AOT apps through `_PublishOptimizedBuildAlternative`, which runs `Compile` but not `Build`, so anything hooked `AfterTargets="Build"` never runs. It depends on the SDK, not the TFM. | +| Framework PDBs missing from, or duplicated in, the symbol upload | `src/Sentry/buildTransitive/Sentry.targets` | The Apple trimmer's output directories move between releases: `linked` became `postprocessed-assemblies` in .NET 11 RC 1, and RC 2 writes both, with different PDB IDs for the assemblies it post-processes. Check which directory's files match the ones in the app bundle. `cli.Tests.ps1` asserts the upload set. | | Verify snapshots missing for the new TFM | `test/**/*.verified.txt` | Delete the snapshots for dropped TFMs. New ones for macOS-covered TFMs regenerate on a local test run. The `.Windows.` and `Net4_8` ones can only be produced on Windows — take them from the `-verify-test-results` CI artifact rather than hand-writing them; they are UTF-8 with BOM and no trailing newline. | | `CS0400` The type or namespace name '...' could not be found | `src/Sentry.Bindings.Android/Transforms/` | Newer Android binding generators stopped pruning methods whose parameter/return types are unbound, so a `Bind="false"` Java dependency leaks an unresolvable type into the generated C#. `remove-node` the offending member. Because the older generator already pruned it, the same entry warns `BG8A00` there - put net-N-only entries in their own transform file and `TransformFile Remove` it for older TFMs, since the SDK auto-globs `Transforms/**/*.xml` into every TFM. | | `CsWinRT1032` Collection expressions targeting non mutable interface type | any `-windows` TFM | A newer CsWinRT rejects a collection expression whose target is a non-mutable interface (`IEnumerable`), because the synthesised type isn't trim/AOT-safe for WinRT. Cast the expression to a concrete array rather than changing the public signature it's passed to. | From 021896921ad2207aa72c6424fd1f1469c28a5c7a Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Wed, 14 Oct 2026 17:40:19 +1300 Subject: [PATCH 7/9] docs: keep only the recurring RC 2 lessons in the upgrade checklist Drops the UIScene row, a one-off Apple requirement. Trims the XHarness row to the part that recurs, and folds the AOT publish and trimmer directory rows into one row about symbol upload depending on SDK internals. Co-Authored-By: Claude Opus 5.5 --- CONTRIBUTING.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6fac9d42b8..8b657dd609 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -237,10 +237,8 @@ they cost nothing, and the next LTS transition brings some of those versions bac | `NETSDK1094` / `NETSDK1096` optimizing assemblies for performance failed | app `.csproj`s with an Android TFM | ReadyToRun can't target Android at all (`crossgen2`: `Target OS 'android' is not supported`), but the SDK may enable it by default. Set `PublishReadyToRun=false` on the affected app. | | iOS app builds fail with `requires Xcode X, the current version is Y` | `integration-test/*.ps1`, device test apps | Each .NET for iOS SDK pack pins an **exact** Xcode version, so only one iOS TFM is buildable on a given machine. Build the TFM matching the Xcode that CI pins, and don't try to cover two. Libraries skip this check, which is why only app builds are affected. When an RC needs an Xcode the `macos-*` images don't carry yet, move the macOS jobs to the matching preview image (.NET 11 RC 2 needed `xcode-27`) and update the `Pin the Xcode Version` step in `.github/actions/environment/action.yml`. | | `NETSDK1140` X is not a valid TargetPlatformVersion for ios | `Directory.Build.props`, `test/Sentry.Maui.Device.TestApp`, `integration-test/common.ps1`, `integration-test/ios.Tests.ps1`, `integration-test/maui-device`, `scripts/device-test-utils.ps1` | An Apple pack accepts only its own platform version, so when an RC moves to a new Xcode (.NET 11 RC 2 went from 26.5 to 27.0) the old TFM stops resolving. The version is spelled out in every one of those places; update them together. | -| iOS app never gets past the launch screen | app `Info.plist`s | Apps built with Xcode 27 must adopt the UIScene lifecycle. Add a `UIApplicationSceneManifest` and a `SceneDelegate` (a `MauiUISceneDelegate` subclass for MAUI apps), as the MAUI templates do. App-level activation callbacks such as `UIApplicationDelegate.OnActivated` stop firing under scenes; move them to the scene delegate. | -| iOS device tests fail with XHarness exit code 80 (`APP_CRASH`) and `Simulator.app could not be launched because it was not found` | `scripts/device-test-utils.ps1` | The app never started: the `mlaunch` bundled with XHarness predates the new Xcode. Xcode 27 replaced `Simulator.app` with `DeviceHub.app`. Bump the pinned XHarness. `Install-XHarness` skips the install whenever any `xharness` is on the `PATH`, so update a local global install too. | -| Native AOT publish uploads no symbols, and `cli.Tests.ps1` can't find `Preparing upload to Sentry` | `src/Sentry/buildTransitive/Sentry.targets` | Check which targets `dotnet publish` actually runs. From .NET 11 RC 2 the SDK publishes Native AOT apps through `_PublishOptimizedBuildAlternative`, which runs `Compile` but not `Build`, so anything hooked `AfterTargets="Build"` never runs. It depends on the SDK, not the TFM. | -| Framework PDBs missing from, or duplicated in, the symbol upload | `src/Sentry/buildTransitive/Sentry.targets` | The Apple trimmer's output directories move between releases: `linked` became `postprocessed-assemblies` in .NET 11 RC 1, and RC 2 writes both, with different PDB IDs for the assemblies it post-processes. Check which directory's files match the ones in the app bundle. `cli.Tests.ps1` asserts the upload set. | +| iOS device tests fail with XHarness exit code 80 (`APP_CRASH`), but the app never launched | `scripts/device-test-utils.ps1` | The `mlaunch` bundled with XHarness doesn't support the new Xcode. Bump the pinned XHarness. `Install-XHarness` doesn't install if any `xharness` is already on the `PATH`, so update your local one too. | +| Symbol upload silently stops, or sends the wrong files | `src/Sentry/buildTransitive/Sentry.targets` | We depend on SDK target names and intermediate directories, and these change between previews without errors. In .NET 11, `_CopyAotSymbols` went away in preview 7, `linked` became `postprocessed-assemblies` in RC 1, and in RC 2 Native AOT publish stopped running `Build` and both directories were written. `cli.Tests.ps1` is what catches it. Compare which targets run and which directories get written under the old and new SDKs. | | Verify snapshots missing for the new TFM | `test/**/*.verified.txt` | Delete the snapshots for dropped TFMs. New ones for macOS-covered TFMs regenerate on a local test run. The `.Windows.` and `Net4_8` ones can only be produced on Windows — take them from the `-verify-test-results` CI artifact rather than hand-writing them; they are UTF-8 with BOM and no trailing newline. | | `CS0400` The type or namespace name '...' could not be found | `src/Sentry.Bindings.Android/Transforms/` | Newer Android binding generators stopped pruning methods whose parameter/return types are unbound, so a `Bind="false"` Java dependency leaks an unresolvable type into the generated C#. `remove-node` the offending member. Because the older generator already pruned it, the same entry warns `BG8A00` there - put net-N-only entries in their own transform file and `TransformFile Remove` it for older TFMs, since the SDK auto-globs `Transforms/**/*.xml` into every TFM. | | `CsWinRT1032` Collection expressions targeting non mutable interface type | any `-windows` TFM | A newer CsWinRT rejects a collection expression whose target is a non-mutable interface (`IEnumerable`), because the synthesised type isn't trim/AOT-safe for WinRT. Cast the expression to a concrete array rather than changing the public signature it's passed to. | From e4c35067d9084bc35e345f7be5936353a046fa33 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Mon, 19 Oct 2026 21:33:00 +1300 Subject: [PATCH 8/9] Update src/Sentry/buildTransitive/Sentry.targets --- src/Sentry/buildTransitive/Sentry.targets | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Sentry/buildTransitive/Sentry.targets b/src/Sentry/buildTransitive/Sentry.targets index 1b83e2358b..6bfdd6bb76 100644 --- a/src/Sentry/buildTransitive/Sentry.targets +++ b/src/Sentry/buildTransitive/Sentry.targets @@ -227,6 +227,7 @@ $(SentryCLIUploadDirectory) $(SentryCLIUploadItems) $(IntermediateOutputPath)linked/*.pdb $(SentryCLIUploadItems) $(IntermediateOutputPath)postprocessed-assemblies/*.pdb From 14160220b393384d4934ddfb3a90a81bfa69045a Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Sat, 17 Oct 2026 04:52:25 +1300 Subject: [PATCH 9/9] fix(maui): keep in_foreground true while another window is active Opening a second window on iPad fires SceneOnResignActivation and SceneDidEnterBackground for the first scene after SceneOnActivated for the second, so InForeground ended up false while the app was in use. Resign and background now leave it true if another connected scene is ForegroundActive. Co-Authored-By: Claude Opus 5.5 --- src/Sentry.Maui/SentryMauiAppBuilderExtensions.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Sentry.Maui/SentryMauiAppBuilderExtensions.cs b/src/Sentry.Maui/SentryMauiAppBuilderExtensions.cs index e3096c8f71..3eeb8c805d 100644 --- a/src/Sentry.Maui/SentryMauiAppBuilderExtensions.cs +++ b/src/Sentry.Maui/SentryMauiAppBuilderExtensions.cs @@ -131,9 +131,13 @@ private static void RegisterMauiEventsBinder(this MauiAppBuilder builder) lifecycle.SceneOnActivated(scene => SentryMauiEventProcessor.InForeground = true); lifecycle.DidEnterBackground(application => SentryMauiEventProcessor.InForeground = false); - lifecycle.SceneDidEnterBackground(scene => SentryMauiEventProcessor.InForeground = false); + lifecycle.SceneDidEnterBackground(scene => SentryMauiEventProcessor.InForeground = AnyOtherSceneIsActive(scene)); lifecycle.OnResignActivation(application => SentryMauiEventProcessor.InForeground = false); - lifecycle.SceneOnResignActivation(scene => SentryMauiEventProcessor.InForeground = false); + lifecycle.SceneOnResignActivation(scene => SentryMauiEventProcessor.InForeground = AnyOtherSceneIsActive(scene)); + + static bool AnyOtherSceneIsActive(UIKit.UIScene scene) => + UIKit.UIApplication.SharedApplication.ConnectedScenes.ToArray() + .Any(s => s != scene && s.ActivationState == UIKit.UISceneActivationState.ForegroundActive); }); #elif ANDROID events.AddAndroid(lifecycle =>