Repository navigation
Upgrade to .NET 11 and update all packages - #1485
Merged
Merged
Conversation
- Retarget all projects to net11.0; global.json SDK 11.*, Dockerfile, CI workflows, README - Bump Microsoft packages to 11.0.0 and others to latest stable (Stripe.net stays pinned) - Replace SixLabors.ImageSharp 2.1.13 (unpatched advisories) with SkiaSharp for avatar resize - Extract AvatarImageResizer with unit tests - Remove obsolete Razor runtime compilation (ASPDEPR003) - Drop NETStandard.Library and System.ComponentModel.Annotations from Core (NU1510) - Enable NimblePros workflow and dotnet plugins for the project Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ackages - AvatarImageResizer: honor EXIF orientation, cap source at 10k px/side and 40 MP, downsample during decode, mipmapped sampling, strip metadata - EditAvatar: show validation errors for missing/invalid uploads instead of a 500; bind label, accept filter, aria-described error - Update src/DevBetterWeb.Web/Dockerfile, .vscode/launch.json and workflow step names to .NET 11 - Remove 21 PackageVersion entries no project references - Add AutoMapper profile compile test and expanded resizer tests Co-Authored-By: Claude Opus 5.5 <[email protected]>
| if (result != SKCodecResult.Success && result != SKCodecResult.IncompleteInput) | ||
| { | ||
| // The codec cannot scale to that size; decode at full size instead. | ||
| bitmap.Dispose(); |
|
|
||
| if (result != SKCodecResult.Success && result != SKCodecResult.IncompleteInput) | ||
| { | ||
| bitmap.Dispose(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the app to .NET 11 and updates all NuGet packages.
Framework
net11.0;global.jsonSDK11.*sdk:11.0/aspnet:11.011.0.x;.vscode/launch.jsonand README updatedPackages
SkiaSharp.NativeAssets.Linux.NoDependenciesfor the Linux App Service.Stripe.netstays pinned at 52.2.0 (webhook API version; see comment in props)NETStandard.LibraryandSystem.ComponentModel.Annotationsfrom Core (NU1510 under net11)AddRazorRuntimeCompilationand its package (obsolete in net11, ASPDEPR003); use Hot Reload in devPackageVersionentries that no project referenced (FastEndpoints, OpenTelemetry/Aspire leftovers, SQLite, etc.). Aspire is tracked separately in Add .NET Aspire (AppHost + ServiceDefaults) to main #1484.Avatar upload (
EditAvatar)AvatarImageResizer: applies EXIF orientation, center-crops to 500×500 JPEG q80, fills transparent areas with white, strips metadata (no more GPS in public blobs)acceptfilter, error message linked witharia-describedby/role="alert"Tests
AvatarImageResizerTests: size/format for several inputs, wide and tall crop, transparency, all 8 EXIF orientations, metadata stripped, oversize rejection, invalid data, nullAutoMapperConfigurationTests: every Web profile loads and compiles under AutoMapper 17Verification
dotnet build: succeeded (SDK 11.0.100)dotnet test: 296 passed, 0 failed (Unit 175, Integration 118, Functional 3)dotnet format --verify-no-changes: fails, as it already does onmain. Main has ~11k existing violations (whitespace, imports, file-scoped namespaces in old migrations) under both SDK 10 and SDK 11. This PR adds none: the new files pass on their own, and the repo total went down slightly..claude/plans/2026-11-15-issue-1482-update-net11.md.Follow-ups / known items
Microsoft.AspNetCore.WebUtilities9.0.4 advisory comes in throughNimblePros.Vimeo→NimblePros.ApiClient 2.1.2. It already exists on main, and Web resolves the framework copy at runtime. The fix is to bump NimblePros.Vimeo.linux-x64, so this should already work.Fixes #1482
🤖 Generated with Claude Code