{"id":393032,"date":"2026-03-19T10:30:10","date_gmt":"2026-03-19T10:30:10","guid":{"rendered":"https:\/\/www.europesays.com\/ie\/393032\/"},"modified":"2026-03-19T10:30:10","modified_gmt":"2026-03-19T10:30:10","slug":"net-11-preview-2-brings-performance-gains-improved-mapping-and-native-opentelemetry-support","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ie\/393032\/","title":{"rendered":".NET 11 Preview 2 Brings Performance Gains, Improved Mapping, and Native OpenTelemetry Support"},"content":{"rendered":"<p>Last week, Microsoft released the <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-11-preview-2\/\" rel=\"nofollow noopener\" target=\"_blank\">second preview of .NET 11<\/a>, bringing a wide range of improvements across its development platform. As reported, the release covers updates to the runtime, SDK, libraries, ASP.NET Core, Blazor, .NET MAUI, F#, and more. The preview is available now, and as stated, it represents a significant step forward in the platform&#8217;s ongoing development cycle.<\/p>\n<p><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/aspnetcore.md\" rel=\"nofollow noopener\" target=\"_blank\">ASP.NET Core<\/a> gains native OpenTelemetry tracing support in this release. The framework now adds <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/aspnetcore.md#native-opentelemetry-tracing-for-aspnet-core\" rel=\"nofollow noopener\" target=\"_blank\">OpenTelemetry semantic attributes<\/a> directly to HTTP server activity, meaning developers no longer need the separate instrumentation library to collect standard tracing data. Attributes such as request method, URL path, response status code, and server address are now populated automatically by the framework itself.<\/p>\n<p>Blazor Server-Side Rendering now supports <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/aspnetcore.md#tempdata-support-for-blazor\" rel=\"nofollow noopener\" target=\"_blank\">TempData<\/a>, allowing data to persist across HTTP requests, which is useful for flash messages, redirect flows, and one-time notifications. The feature is registered automatically and uses ASP.NET Core Data Protection for encryption by default.<\/p>\n<p>A new dotnet <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/aspnetcore.md#net-web-worker-project-template\" rel=\"nofollow noopener\" target=\"_blank\">new webworker<\/a> project template has also been introduced, allowing Blazor WebAssembly applications to offload heavy computations to a Web Worker without blocking the UI thread, keeping applications responsive during demanding operations.<\/p>\n<p><a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/aspnetcore.md#performance-improvements\" rel=\"nofollow noopener\" target=\"_blank\">Kestrel&#8217;s HTTP\/1.1<\/a> request parser has been reworked to avoid throwing exceptions on malformed requests. As stated, throughput improvements of 20 to 40 percent have been reported in high invalid-traffic scenarios such as port scanning or misconfigured clients.<\/p>\n<p>The Map control in .<a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/dotnetmaui.md\" rel=\"nofollow noopener\" target=\"_blank\">NET MAUI<\/a> has received significant attention in this preview. Developers can now define map coordinates directly in XAML using a simplified syntax, removing the need for verbose markup that was previously required. A new Map.Region bindable property also allows developers to set the map&#8217;s initial region declaratively.<\/p>\n<p>Map elements such as polygons, polylines, and circles now support visibility toggling and draw-order control through new IsVisible and ZIndex properties, enabling more dynamic and interactive map overlays. Click events on the map elements are also now supported on both Android and iOS, opening the door for richer user interaction without additional workarounds.<\/p>\n<p>Binding performance has also improved considerably in .NET MAUI. TypedBinding and <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/dotnetmaui.md#typedbinding-performance-improvements\" rel=\"nofollow noopener\" target=\"_blank\">SourceGeneratedBinding<\/a> are reported to be approximately 29 percent faster with 50 percent less memory allocation per operation, thanks to delegate caching, binding mode caching, and the removal of unnecessary type conversions. As described, the\u00a0long-standing bug affecting empty-string binding to nullable value types has been resolved, correctly setting the bound property to null when an input field is cleared.<\/p>\n<p>In contrast to C#, Preview 2 brings\u00a0several notable additions to the\u00a0<a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/fsharp.md\" rel=\"nofollow noopener\" target=\"_blank\">F# programming language<\/a>. The language gains support for the #elif preprocessor directive, eliminating the need for deeply nested conditional compilation blocks. A new <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/fsharp.md#partitionwith-for-collections\" rel=\"nofollow noopener\" target=\"_blank\">partitionWith<\/a> function has been added across core collection types, allowing as-explained collections to be split into two groups of different element types.<\/p>\n<p>A new overload resolution caching mechanism is reported to reduce type-checking time from 6.5 seconds to 2.9 seconds in tested benchmarks. All 462 functions across core collection modules now also include <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/fsharp.md#big-o-complexity-documentation\" rel=\"nofollow noopener\" target=\"_blank\">Big-O complexity notes<\/a> visible directly in IDE tooltips.<\/p>\n<p>Other changes in this release include a generic <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/libraries.md#generic-gettypeinfo-for-systemtextjson\" rel=\"nofollow noopener\" target=\"_blank\">GetTypeInfo<\/a> for System.Text.Json, <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/libraries.md#tar-archive-format-selection\" rel=\"nofollow noopener\" target=\"_blank\">tar archive<\/a> format selection, and, as reported 15 percent performance improvement to <a href=\"https:\/\/github.com\/dotnet\/core\/blob\/main\/release-notes\/11.0\/preview\/preview2\/libraries.md#matrix4x4getdeterminant-15-faster\" rel=\"nofollow noopener\" target=\"_blank\">Matrix4x4.GetDeterminant<\/a>.<\/p>\n<p>For interested readers, the full release notes are available on the <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-11-preview-2\/\" rel=\"nofollow noopener\" target=\"_blank\">official .NET blog<\/a> and the dotnet <a href=\"https:\/\/github.com\/dotnet\" rel=\"nofollow noopener\" target=\"_blank\">GitHub repository<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"Last week, Microsoft released the second preview of .NET 11, bringing a wide range of improvements across its&hellip;\n","protected":false},"author":2,"featured_media":393033,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[74],"tags":[14238,14240,179286,14239,14237,7266,179285,18,19,17,82],"class_list":["post-393032","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-net","tag-net-10","tag-net-11","tag-net-9","tag-net-core","tag-development","tag-dotnet-11-preview-2","tag-eire","tag-ie","tag-ireland","tag-technology"],"share_on_mastodon":{"url":"https:\/\/pubeurope.com\/@ie\/116255380384751455","error":""},"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/393032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/comments?post=393032"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/posts\/393032\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media\/393033"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/media?parent=393032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/categories?post=393032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ie\/wp-json\/wp\/v2\/tags?post=393032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}