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
EventSource wasn't supported when publishing an app for NativeAOT in .NET 7. This led to the
EventSourceSupportfeature 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
EventSourceSupportfeature switch is still disabled, so users won't be able to use things likedotnet monitorordotnet countersunless they explicitly opt-in.We should default
EventSourceSupport=truein 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