-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Milestone
Description
On a Blazor webassembly app with authentication, the linker in 7.0 seems to be incorrectly trimming the getters of an object that we json serialize. This is the linked output in 7.0
This is the linked output in 6.0
This type is used is passed as an argument to JS interop calls, which are annotated as, so the getters should be preserved (as in 6.0)
https://github.com/dotnet/aspnetcore/blob/main/src/JSInterop/Microsoft.JSInterop/src/IJSRuntime.cs#L25 https://github.com/dotnet/aspnetcore/blob/main/src/Shared/LinkerFlags.cs#L13
If you want to reproduce it, you can use dotnet 7 and call dotnet new blazorwasm -au Individual -ho -o BlazorWasmAuth
and run dotnet publish on the BlazorWasmAuth/Server
project.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status