Skip to content

Commit d9858bc

Browse files
authored
Default JsonSerializerIsReflectionEnabledByDefault to true on Blazor WASM. (#31909)
1 parent fc4cb66 commit d9858bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/BlazorWasmSdk/Targets/Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Copyright (c) .NET Foundation. All rights reserved.
1717
<!-- Trimmer defaults that depend on user-definable settings.
1818
This must be configured before it's initialized in the .NET SDK targets (which are imported by the Razor SDK). -->
1919
<SuppressTrimAnalysisWarnings Condition="'$(SuppressTrimAnalysisWarnings)' == '' And '$(TrimmerDefaultAction)' != 'link'">true</SuppressTrimAnalysisWarnings>
20+
21+
<!-- Similarly these feature switches must be configured before they are initialized in imported SDKs -->
22+
<JsonSerializerIsReflectionEnabledByDefault Condition="'$(JsonSerializerIsReflectionEnabledByDefault)' == ''">true</JsonSerializerIsReflectionEnabledByDefault>
2023
</PropertyGroup>
2124

2225
<Import Sdk="Microsoft.NET.Sdk.Razor" Project="Sdk.targets" />

0 commit comments

Comments
 (0)