Update the MauiBlazorWebIdentity sample to .NET 10 #590
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.
This pull request introduces several improvements and updates across the shared and web components of the MauiBlazorWeb project.
The most significant changes include upgrading the target framework and package versions to .NET 10, refactoring and consolidating service interfaces, enhancing navigation and authorization logic in the navigation menu, and adding new endpoints for passkey authentication. Additionally, minor styling and usability enhancements have been made.
Framework and Package Upgrades
MauiBlazorWeb.Shared.csproj
tonet10.0
and upgraded all related NuGet package references to their 10 versions.Navigation and Authorization Improvements
NavMenu.razor
to use a more streamlined navigation structure, inject the newISupportedFeatures
service, and conditionally display account management links based on feature support and user authorization status.NotFound.razor
page to provide a user-friendly message for missing content. This is part of the .NET 10 templates.Service Interface Refactoring
IFormFactor
,IWeatherService
) to use file-scoped namespaces and simplified method signatures.ISupportedFeatures
interface for feature detection.Identity and Authentication Enhancements
IdentityComponentsEndpointRouteBuilderExtensions.cs
to support advanced authentication scenarios. This is part of the .NET 10 templates.Styling and Usability
_Imports.razor
to include additional shared namespaces for easier access throughout the project.Fixes #591