Skip to content

Commit

Permalink
[Blazor] Disable problematic runtime switches, same as preview5 (#41412)
Browse files Browse the repository at this point in the history
* Enables NullabilityInfoContextSupport from webassembly projects.
* Disables _AggressiveAttributeTrimming from webassembly projects.

There is a 0.76% size regression with these changes that unfortunately we need to take. Same was done in preview5.
  • Loading branch information
javiercn authored Jun 5, 2024
1 parent f3010b9 commit 87a2acd
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ Copyright (c) .NET Foundation. All rights reserved.
<UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">true</UseSystemResourceKeys>
<EnableUnsafeUTF7Encoding Condition="'$(EnableUnsafeUTF7Encoding)' == ''">false</EnableUnsafeUTF7Encoding>
<HttpActivityPropagationSupport Condition="'$(HttpActivityPropagationSupport)' == ''">false</HttpActivityPropagationSupport>
<NullabilityInfoContextSupport Condition="'$(NullabilityInfoContextSupport)' == ''">false</NullabilityInfoContextSupport>
<_AggressiveAttributeTrimming Condition="'$(_AggressiveAttributeTrimming)' == ''">true</_AggressiveAttributeTrimming>
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and '$(Configuration)' != 'Debug'">false</DebuggerSupport>
<BlazorCacheBootResources Condition="'$(BlazorCacheBootResources)' == ''">true</BlazorCacheBootResources>

Expand Down

0 comments on commit 87a2acd

Please sign in to comment.