-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Default JsonSerializerIsReflectionEnabledByDefault to true on Blazor WASM. #31909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,9 @@ Copyright (c) .NET Foundation. All rights reserved. | |
| <!-- Trimmer defaults that depend on user-definable settings. | ||
| This must be configured before it's initialized in the .NET SDK targets (which are imported by the Razor SDK). --> | ||
| <SuppressTrimAnalysisWarnings Condition="'$(SuppressTrimAnalysisWarnings)' == '' And '$(TrimmerDefaultAction)' != 'link'">true</SuppressTrimAnalysisWarnings> | ||
|
|
||
| <!-- Similarly these feature switches must be configured before it's initialized in imported SDKs --> | ||
| <JsonSerializerIsReflectionEnabledByDefault Condition="'$(JsonSerializerIsReflectionEnabledByDefault)' == ''">true</JsonSerializerIsReflectionEnabledByDefault> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this need any testing?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See the note in the top comment.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAIK blazor apps don't run here. So best way to test it is to locally run blazor app with the built SDK.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can't be disabled for blazor apps, if the user disables this, we should emit an error instead in the context of blazor webassembly apps or simply ignore the user choice. The framework is dependent on this feature for basic functionality (JS interop) |
||
| </PropertyGroup> | ||
|
|
||
| <Import Sdk="Microsoft.NET.Sdk.Razor" Project="Sdk.targets" /> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.