Skip to content

Default EventSourceSupport to true in ASP.NET Native AOT apps #48247

@eerhardt

Description

@eerhardt

EventSource wasn't supported when publishing an app for NativeAOT in .NET 7. This led to the EventSourceSupport feature switch to being disabled by default in AOT.

In .NET 8 we are getting EventSource to work in Native AOT apps - dotnet/runtime#79241. However, the EventSourceSupport feature switch is still disabled, so users won't be able to use things like dotnet monitor or dotnet counters unless they explicitly opt-in.

We should default EventSourceSupport=true in ASP.NET Native AOT'd applications.

This will add size to the default apps (the estimate is around 1 MB), however the tradeoff is worth it, since EventSource is a very common mechanism used for getting information about a running app.

cc @DamianEdwards @davidfowl @noahfalk @agocke @LakshanF @jkotas @MichalStrehovsky

Metadata

Metadata

Assignees

No one assigned

    Labels

    NativeAOTarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions