Move the Blazor WebAssembly sample off the deprecated DevServer
Maintainer thường phản hồi trong vòng 1 ngà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
- 67/100
Hướng nghiên cứu
Bắt đầu với project và launchSettings.json trong samples/Sentry.Samples.AspNetCore.Blazor.Wasm, sau đó so sánh với mẫu blazorwasm của .NET 11. Thay tham chiếu package DevServer bằng Gateway, bật StaticWebAssetSpaFallbackEnabled và xóa các mục inspectUri đã lỗi thời; kiểm tra xem profile IIS Express có hoạt động trên Windows không. Hoàn tất khi cả ba trang mẫu và các liên kết sâu đều hoạt động với Gateway và hành vi fallback đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
dotnet/aspnetcore#67857 deprecated Microsoft.AspNetCore.Components.WebAssembly.DevServer in .NET 11 and replaced it with Microsoft.AspNetCore.Components.Gateway. The 11.0.0 package says so on nuget.org, and DevServer logs this at startup:
Microsoft.AspNetCore.Components.WebAssembly.DevServer is deprecated and will be removed in a future release. Use Microsoft.AspNetCore.Components.Gateway instead.
samples/Sentry.Samples.AspNetCore.Blazor.Wasm still uses it. People copy our samples, so I'd like to move it to Gateway the same way the .NET 11 blazorwasm template does:
- Swap the DevServer
PackageReferencefor Gateway, keepingPrivateAssets="all". - Set
StaticWebAssetSpaFallbackEnabledtotrue. Without it, Gateway returns 404 for every page, including/. - Drop the
inspectUrientries fromlaunchSettings.json. They only serve the legacy in-browser debugging that dotnet/aspnetcore#67858 obsoleted, and IDEs start the debug proxy themselves.
I've tried this locally on macOS. All three sample pages load, deep links work, and the SDK initializes the same way it does with DevServer. The published output doesn't change, because neither server gets deployed.
Two things to keep in mind:
- The fallback property and the package swap need to land together. With the property set, DevServer finds two fallback routes and returns a 500 to any client that doesn't accept gzip. Browsers do accept it, so it's easy to miss.
- The template no longer has an IIS Express profile, and I can't test ours on a Mac. I'd remove it too, unless someone on Windows wants to check that it still works with Gateway.
#5902 also bumps this sample's DevServer pin to 11.0.0, so whichever PR lands second needs a small rebase. The Playwright test app targets net10.0 with DevServer 10.0.0, which isn't deprecated, so it stays as it is.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-dotnet
-
State: Needs Discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-dotnet#6071 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Có thể đã có người làm @pcbeingused33 đã nhận hôm nay. Đang mởState: Needs Discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-dotnet#6039 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
.NET Platform: Android Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
getsentry/sentry-dotnet#6020 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs MSBuild Needs Docs Update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-dotnet#5691 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
.NET Docs State: Needs Discussion
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
getsentry/sentry-dotnet#5637 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-dotnet
Issue tương tự
-
:watch: Not Triaged dotnet-target-version
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
dotnet/docs-desktop#2313 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
dotnet-target-version
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
-
:watch: Not Triaged dotnet-target-version
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
IntelliTect/Coalesce#794 · 1 bình luận ·
-
Project dependencies are outdatedCó thể đã có người làm @yasmoradi đã nhận hôm nay. Đang mởdependencies
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
bitfoundation/bitplatform#15562 ·
Maintainer thường phản hồi trong vòng 1 ngày