Default EventSourceSupport to true in ASP.NET Native AOT apps #48247
Labels
area-infrastructure
Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
NativeAOT
Milestone
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 likedotnet monitor
ordotnet 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
The text was updated successfully, but these errors were encountered: