Skip to content
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

Blazor WASM apps should default new runtime config options to link out unnecessary code #23716

Closed
eerhardt opened this issue Jul 6, 2020 · 0 comments · Fixed by #23932
Closed
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@eerhardt
Copy link
Member

eerhardt commented Jul 6, 2020

In order to support smaller applications, the following feature switches are being added to dotnet/runtime:

See the SDK support at dotnet/sdk#12362.

The Blazor SDK should default these new properties in order to get as small of app as possible.

<EventSourceSupport Condition="'$(EventSourceSupport)' == ''">false</EventSourceSupport>
<UseSystemResourceKeys Condition="'$(UseSystemResourceKeys)' == ''">true</UseSystemResourceKeys>
<EnableUnsafeUTF7Encoding Condition="'$(EnableUnsafeUTF7Encoding)' == ''">false</EnableUnsafeUTF7Encoding>

<RuntimeHostConfigurationOption Include="System.Net.Http.EnableActivityPropagation"
                                Value="false"
                                Trim="true" />

Note the Debugger.IsSupported is not implemented yet.

@pranavkm @SteveSandersonMS

@pranavkm pranavkm added the area-blazor Includes: Blazor, Razor Components label Jul 7, 2020
@pranavkm pranavkm added this to the 5.0.0-preview8 milestone Jul 7, 2020
eerhardt added a commit to eerhardt/aspnetcore that referenced this issue Jul 14, 2020
These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fix dotnet#23716
@ghost ghost closed this as completed in #23932 Jul 16, 2020
ghost pushed a commit that referenced this issue Jul 16, 2020
* Default new runtime feature switches

These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fix #23716

* PR feedback
eerhardt added a commit to eerhardt/aspnetcore that referenced this issue Jul 16, 2020
* Default new runtime feature switches

These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fix dotnet#23716

* PR feedback
mkArtakMSFT pushed a commit that referenced this issue Jul 16, 2020
* Default new runtime feature switches

These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fix #23716

* PR feedback
@ghost ghost locked as resolved and limited conversation to collaborators Aug 15, 2020
dougbu pushed a commit to dougbu/razor-compiler that referenced this issue Nov 17, 2021
* Default new runtime feature switches

These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fix dotnet/aspnetcore#23716

* PR feedback

Commit migrated from dotnet/aspnetcore@7b42cf1275b2
dougbu pushed a commit to dougbu/razor-compiler that referenced this issue Nov 17, 2021
…t/aspnetcore#23987)

* Default new runtime feature switches

These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fix dotnet/aspnetcore#23716

* PR feedback

Commit migrated from dotnet/aspnetcore@427bfc8d6b05
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants