-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
5.0.0Announcements related to ASP.NET Core 5.0Announcements related to ASP.NET Core 5.0AnnouncementBreaking changeDocumentedThe breaking change has been published to the .NET Core docsThe breaking change has been published to the .NET Core docs
Milestone
Description
ProtectedBrowserStorage feature moved to ASP.NET Core shared framework
As part of the 5.0-rc2 release, the ProtectedBrowserStorage feature has been moved to the ASP.NET Core shared framework.
Version introduced
5.0-rc2
Old behavior
In 5.0-preview8, the feature was available as a part of the Microsoft.AspNetCore.Components.Web.Extensions package but was only usable in Blazor WebAssembly. In 5.0-rc1, the feature was available as part of the Microsoft.AspNetCore.Components.ProtectedBrowserStorage package which references the Microsoft.AspNetCore.App shared framework.
New behavior
As part of 5.0-rc2, a package reference is no longer needed to reference and use the feature.
Reason for change
Better fit for the user experience we expect.
Recommended action
When upgrading from 5.0-rc1
- Remove the
Microsoft.AspNetCore.Components.ProtectedBrowserStoragepackage reference - Replace the
Microsoft.AspNetCore.Components.ProtectedBrowserStorageusing withMicrosoft.AspNetCore.Components.Server.ProtectedBrowserStorage - Remove the call to
AddProtectedBrowserStoragefrom your Startup.
When upgrading from 5.0-preview8
- Remove the
Microsoft.AspNetCore.Components.Web.Extensionspackage reference - Replace the
Microsoft.AspNetCore.Components.Web.Extensionsusing withMicrosoft.AspNetCore.Components.Server.ProtectedBrowserStorage - Remove the call to
AddProtectedBrowserStoragefrom your Startup.
Category
ASP.NET
Affected APIs
- Microsoft.AspNetCore.Components.ProtectedBrowserStorage
- Microsoft.Extensions.DependencyInjection.ProtectedBrowserStorageServiceCollectionExtensions.AddProtectedBrowserStorage
Issue metadata
- Issue type: breaking-change
Metadata
Metadata
Assignees
Labels
5.0.0Announcements related to ASP.NET Core 5.0Announcements related to ASP.NET Core 5.0AnnouncementBreaking changeDocumentedThe breaking change has been published to the .NET Core docsThe breaking change has been published to the .NET Core docs