1. .NET 8
… and first glimpse at .NET 9
Codetherapist (aka Olivier Giss)
@code_therapist
Jürgen Gutsch
.NET junkie, addicted to web and software development, clean coder,
MVP for Developer Technologies
@sharpcms
2. Agenda
• .NET 8
• C# 12
• ASP.NET 8
• EF Core 8
• All about .NET 9
• Q&A
3. .NET 8
• Released at 14.11.2023
• Last: 8.0.3 14.03.2024
• LTS (Long Term Support, 3 years)
• End of Support: 10. November 2026
• .NET 7 End of Support: 14. May
2024
• .NET 6 End of Support: 12.
November 2024
7. https://learn.microsoft.com/en-
us/dotnet/core/whats-new/dotnet-
8/runtime
.NET 8 - Runtime • Arm64 performance improvements
• SIMD improvements
• Support for AVX-512 ISA extensions (see Vector512 and AVX-
512)
• Cloud-native improvements
• JIT throughput improvements
• Loop and general optimizations
• Optimized access for fields marked with ThreadStaticAttribute
• Consecutive register allocation. Arm64 has two instructions for
table vector lookup, which require that all entities in their tuple
operands are present in consecutive registers.
• JIT/NativeAOT can now unroll and auto-vectorize some memory
operations with SIMD, such as comparison, copying, and
zeroing, if it can determine their sizes at compile time.
9. https://learn.microsoft.com/en-
us/aspnet/core/release-
notes/aspnetcore-
8.0?view=aspnetcore-8.0
.NET 8 – ASP.NET • Full-stack web UI
• New Blazor Web App template
• Render Razor components outside of ASP.NET Core
• SignalR stateful reconnect
• Antiforgery with minimal APIs
• Native AOT
• New project template
• New CreateSlimBuilder / CreateEmptyBuilder methods
• Securing Swagger UI endpoints
• Keyed services support in Dependency Injection
• Support for generic attributes
10. https://learn.microsoft.com/en-
us/ef/core/what-is-new/ef-core-
8.0/whatsnew
.NET 8 – EF Core
• Value objects using Complex Types
• Primitive collection properties
• Enhancements to JSON column mapping
• JSON Columns for SQLite
• HierarchyId in .NET and EF Core
• Raw SQL queries for unmapped types
• DateOnly/TimeOnly supported on SQL Server