Skip to content

How to Base64UrlEncode in Blazor WebAssembly client now that Microsoft.AspNetCore.WebUtilities has been deprecated? #48068

@Bellarmine-Head

Description

@Bellarmine-Head

I just spotted that NuGet in Visual Studio is saying that package Microsoft.AspNetCore.WebUtilities at 2.2.0 is deprecated.

I have this package installed into my Blazor WebAssembly Client project because I need to call method WebEncoders.Base64UrlEncode.

If I should remove Microsoft.AspNetCore.WebUtilities, how should my Client project perform base64 URL encoding?

(I note that my Server project is still able to call WebEncoders methods, and doesn't have the deprecated package installed anyway.)

This resource says that WebEncoders.Base64UrlEncode lives in package Microsoft.AspNetCore.App.Ref but NuGet tells me that I shouldn't install that package as it's an internal thing.

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions