Skip to content

Commit f7babe0

Browse files
committed
Bump .NET SDK to 9.0.301 and update dependencies
2 parents 3cdbfb5 + 6900cce commit f7babe0

File tree

23 files changed

+69
-39
lines changed

23 files changed

+69
-39
lines changed

.github/actions/environment/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ runs:
6767
with:
6868
dotnet-version: |
6969
8.0.x
70-
9.0.203
70+
9.0.301
7171
7272
- name: Install .NET Workloads
7373
shell: bash
7474
run: |
7575
pwd
7676
dotnet workload install \
77-
wasm-tools wasm-tools-net8 maui-android \
77+
wasm-tools wasm-tools-net8 maui-android android mobile-librarybuilder \
7878
${{ runner.os == 'macOS' && 'maui-ios maui-maccatalyst maui-windows macos' || '' }} \
7979
${{ runner.os == 'Windows' && 'maui-ios maui-maccatalyst maui-windows' || '' }} \
8080
--temp-dir "${{ runner.temp }}" \

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
### Fixes
1111

1212
- The HTTP instrumentation uses the span created for the outgoing request in the sentry-trace header, fixing the parent-child relationship between client and server ([#4264](https://github.com/getsentry/sentry-dotnet/pull/4264))
13+
- InvalidOperationException sending attachments on Android with LLVM enabled ([#4276](https://github.com/getsentry/sentry-dotnet/pull/4276))
1314

1415
### Dependencies
1516

17+
- Bump the version of the .NET SDK that we use from 9.0.203 to 9.0.301 ([#4272](https://github.com/getsentry/sentry-dotnet/pull/4272))
18+
- Note that this also required we bump various Java dependencies (since version 9.0.300 of the Android workload requires newer versions of the these)
19+
- See https://docs.sentry.io/platforms/dotnet/troubleshooting/#detected-package-version-outside-of-dependency-constraint if you see NU1605, NU1608 and/or NU1107 warnings after upgrading
1620
- Bump Native SDK from v0.8.5 to v0.9.0 ([#4260](https://github.com/getsentry/sentry-dotnet/pull/4260))
1721
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#090)
1822
- [diff](https://github.com/getsentry/sentry-native/compare/0.8.5...0.9.0)

Sentry-CI-Build-Linux-arm64.slnf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"src\\Sentry.SourceGenerators\\Sentry.SourceGenerators.csproj",
4848
"src\\Sentry\\Sentry.csproj",
4949
"test\\Sentry.Analyzers.Tests\\Sentry.Analyzers.Tests.csproj",
50-
"test\\Sentry.AspNet.Tests\\Sentry.AspNet.Tests.csproj",
5150
"test\\Sentry.AspNetCore.Grpc.Tests\\Sentry.AspNetCore.Grpc.Tests.csproj",
5251
"test\\Sentry.AspNetCore.Tests\\Sentry.AspNetCore.Tests.csproj",
5352
"test\\Sentry.AspNetCore.TestUtils\\Sentry.AspNetCore.TestUtils.csproj",

Sentry-CI-Build-Linux-musl.slnf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"src\\Sentry.SourceGenerators\\Sentry.SourceGenerators.csproj",
4848
"src\\Sentry\\Sentry.csproj",
4949
"test\\Sentry.Analyzers.Tests\\Sentry.Analyzers.Tests.csproj",
50-
"test\\Sentry.AspNet.Tests\\Sentry.AspNet.Tests.csproj",
5150
"test\\Sentry.AspNetCore.Grpc.Tests\\Sentry.AspNetCore.Grpc.Tests.csproj",
5251
"test\\Sentry.AspNetCore.Tests\\Sentry.AspNetCore.Tests.csproj",
5352
"test\\Sentry.AspNetCore.TestUtils\\Sentry.AspNetCore.TestUtils.csproj",

Sentry-CI-Build-Linux.slnf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"src\\Sentry\\Sentry.csproj",
5555
"test\\Sentry.Analyzers.Tests\\Sentry.Analyzers.Tests.csproj",
5656
"test\\Sentry.Android.AssemblyReader.Tests\\Sentry.Android.AssemblyReader.Tests.csproj",
57-
"test\\Sentry.AspNet.Tests\\Sentry.AspNet.Tests.csproj",
5857
"test\\Sentry.AspNetCore.Grpc.Tests\\Sentry.AspNetCore.Grpc.Tests.csproj",
5958
"test\\Sentry.AspNetCore.Tests\\Sentry.AspNetCore.Tests.csproj",
6059
"test\\Sentry.AspNetCore.TestUtils\\Sentry.AspNetCore.TestUtils.csproj",

Sentry-CI-Build-macOS.slnf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"src\\Sentry\\Sentry.csproj",
6262
"test\\Sentry.Analyzers.Tests\\Sentry.Analyzers.Tests.csproj",
6363
"test\\Sentry.Android.AssemblyReader.Tests\\Sentry.Android.AssemblyReader.Tests.csproj",
64-
"test\\Sentry.AspNet.Tests\\Sentry.AspNet.Tests.csproj",
6564
"test\\Sentry.AspNetCore.Grpc.Tests\\Sentry.AspNetCore.Grpc.Tests.csproj",
6665
"test\\Sentry.AspNetCore.Tests\\Sentry.AspNetCore.Tests.csproj",
6766
"test\\Sentry.AspNetCore.TestUtils\\Sentry.AspNetCore.TestUtils.csproj",

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.203",
4-
"workloadVersion": "9.0.203",
3+
"version": "9.0.301",
4+
"workloadVersion": "9.0.301",
55
"rollForward": "disable",
66
"allowPrerelease": false
77
}

scripts/generate-solution-filters-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ groupConfigs:
2424
windowsOnly:
2525
# .NET Framework projects
2626
- "**/*.AspNet.csproj"
27+
- "**/*.AspNet.Tests.csproj"
2728
artefacts:
2829
# Any projects in the obj or bin directories
2930
- "**/obj/**/*.csproj"
@@ -93,6 +94,7 @@ filterConfigs:
9394
patterns:
9495
- "**/*AndroidTestApp.csproj"
9596
- "**/*DeviceTests*.csproj"
97+
- "**/*.AspNet.Tests.csproj"
9698

9799
- outputPath: Sentry-CI-Build-Windows.slnf
98100
include:

src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@
4343
</ItemGroup>
4444

4545
<!-- Dependencies for AndroidMavenLibrary references
46-
Note: versions match what was shipped with net9.0-android35.0 in:
47-
https://www.nuget.org/packages/Microsoft.Maui.Core/9.0.0#dependencies-body-tab
46+
Matching what was shipped in the 9.0.300 workloads to avoid NU1608 warnings
4847
-->
4948
<ItemGroup Condition="$(TargetFramework.StartsWith('net9'))">
50-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Process" Version="2.8.5.1" />
51-
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Common.Java8" Version="2.8.5.1" />
52-
<!-- MAUI 9 references this version indirectly via Xamarin.AndroidX.SwipeRefreshLayout (>= 1.1.0.24) -->
53-
<PackageReference Include="Xamarin.AndroidX.Core" Version="1.13.1.5" />
49+
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Process" Version="2.8.7.2" />
50+
<PackageReference Include="Xamarin.AndroidX.Lifecycle.Common.Java8" Version="2.8.7.2" />
51+
<!-- MAUI 9 references this version indirectly via Xamarin.AndroidX.SwipeRefreshLayout -->
52+
<PackageReference Include="Xamarin.AndroidX.Core" Version="1.15.0.2" />
5453
<!-- We need 1.9.24 but there's no NuGet package for that version... the lowest version we can use is 2.0.0 -->
5554
<PackageReference Include="Xamarin.Kotlin.StdLib.Jdk8" Version="2.0.0" />
5655
</ItemGroup>

src/Sentry/Internal/PartialStream.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public override async Task<int> ReadAsync(byte[] buffer, int offset, int count,
6060
_innerStream.Position = innerPosition;
6161
}
6262

63-
var read = await _innerStream.ReadAsync(buffer, offset, actualCount, cancellationToken)
63+
// See https://github.com/getsentry/sentry-dotnet/issues/3101
64+
var read = await _innerStream.ReadAsync(buffer.AsMemory(offset, actualCount), cancellationToken)
6465
.ConfigureAwait(false);
6566

6667
if (_length != null)

0 commit comments

Comments
 (0)