Skip to content

Default new runtime feature switches - #25108

Merged
1 commit merged into
release/5.0from
prkrishn/port-sdk-change
Aug 22, 2020
Merged

Default new runtime feature switches#25108
1 commit merged into
release/5.0from
prkrishn/port-sdk-change

Conversation

@pranavkm

Copy link
Copy Markdown
Contributor

Porting #23932 to WebAssemblySDK.

  • 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.

Fixes #25099

@pranavkm
pranavkm requested review from a team and SteveSandersonMS as code owners August 20, 2020 22:40
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Aug 20, 2020
@pranavkm
pranavkm requested a review from eerhardt August 20, 2020 22:40
@pranavkm pranavkm added this to the 5.0.0-rc1 milestone Aug 20, 2020
_DebuggerSupport captures the explicitly specified value for DebuggerSupport. We'll use this value to determine if we need to
include pdbs as part of the publish output.
-->
<_DebuggerSupport>$(DebuggerSupport)</_DebuggerSupport>

@eerhardt eerhardt Aug 20, 2020

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? Why not just use $(DebuggerSupport) below in the Task? If someone is changing it in the meantime (for example in a .targets file that is imported after this - or in a Target), they explicitly want that behavior - not the cached value here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also - since you are doing this above the line below - you are not getting the default setting... So by default _DebuggerSupport will be empty - which means true (since the default is to support debugging).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a better solution to not publishing symbols by default. It relies on CopyOutputSymbolsToPublishDirectory which explicitly designed to control this behavior. Updated.

@javiercn javiercn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the commend @eerhardt made, it looks good to me.

Porting #23932 to WebAssemblySDK.

* 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.

Fixes #25099

If there is an ask mode template to fill out, let me know and I can do it.
@pranavkm
pranavkm force-pushed the prkrishn/port-sdk-change branch from 732f54e to a2b535e Compare August 21, 2020 18:18

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

My only concern is if someone defines a new Configuration, ex. Checked. With my original change we would keep DebuggerSupport to the default value (debugging is supported). With this change a new Configuration would have DebuggerSupport off, and it may confuse people why debugging support code (like DebuggerTypeProxys) are being trimmed. It would be safer to include DebuggerSupport by default on new configurations, the only drawback would be larger assemblies.

@pranavkm

Copy link
Copy Markdown
Contributor Author

Thanks @eerhardt. For the Configuration bit, we haven't seen enough evidence that suggests that users configure their projects to use non-standard configurations. We can always patch this if this it we get feedback that our behavior is problematic.

@ghost

ghost commented Aug 21, 2020

Copy link
Copy Markdown

Hello @pranavkm!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost
ghost merged commit 85835c7 into release/5.0 Aug 22, 2020
@ghost
ghost deleted the prkrishn/port-sdk-change branch August 22, 2020 14:35
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants