chore: remove stale IL3050/IL3053 workaround from the iOS sample

Đang mở Phù hợp với người mới
#6,071 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
build-system, mobile-dev

Hướng nghiên cứu

Đọc samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj và kiểm tra thiết lập WarningsNotAsErrors; xác định xem mẫu tvOS có sao chép thiết lập này từ #6065 hay không. Xóa hai dòng dùng để bỏ qua cảnh báo, sau đó chạy dotnet publish samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj -c Release -r ios-arm64. Hoàn thành khi lệnh publish chạy thành công mà không có cảnh báo IL3050 hoặc IL3053; nếu #6065 được hợp nhất trước, hãy xóa cả các dòng đã sao chép khỏi mẫu tvOS.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

State: Needs Discussion

samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj still carries a workaround for a .NET 9 runtime bug that has since been fixed:

<!-- TODO: Remove once this issue has been addressed: https://github.com/dotnet/runtime/pull/109186 -->
<WarningsNotAsErrors>IL3050;IL3053</WarningsNotAsErrors>

It was added for #3808, where PublishAot failed on EnumConverterFactory warnings from System.Text.Json (dotnet/runtime#109177). The linked fix, dotnet/runtime#109186, merged on 2025-01-13 and shipped in 9.0.2. The sample now targets net11.0-ios, so it should have the fix.

Remove both lines, then publish the sample with NativeAOT for a device and check that no IL3050/IL3053 warnings appear:

dotnet publish samples/Sentry.Samples.Ios/Sentry.Samples.Ios.csproj -c Release -r ios-arm64

The tvOS sample added in #6065 copies the same two lines. Remove them there too if that PR merges first.

Ngôn ngữ chính
C#
Star
775
Fork
262
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
118

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getsentry/sentry-dotnet

Tất cả issue của getsentry/sentry-dotnet

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.