Best of ASP.NET CoreMarch 2025

  1. 1
    Article
    Avatar of andrewlock.NET Escapades·1y

    Running an ASP.NET Core app inside IIS in a Windows container

    The post explains how to run an ASP.NET Core app inside IIS within a Windows container. It covers installing the AspNetCoreModule for IIS integration, using APPCMD and PowerShell to create app pools and websites, and employing ServiceMonitor.exe to monitor an app pool. It also highlights specific challenges and solutions related to managing app pool startup and troubleshooting common errors.

  2. 2
    Article
    Avatar of infoworldInfoWorld·1y

    The key new features in .NET 10

    Microsoft has released the first preview of .NET 10, focusing on performance and reliability improvements. Key updates include an enhanced JIT engine in the runtime, devirtualization of array interfaces, and support for new x64 instructions. ASP.NET Core in .NET 10 now treats Blazor scripts as static assets and embraces OpenAPI 3.1.1 for better API documentation. New features like numeric string sorting and improved zip archive support aim to boost developer productivity.

  3. 3
    Article
    Avatar of milanjovanovicMilan Jovanović·1y

    Options Pattern Validation in ASP.NET Core With FluentValidation

    Learn how to use FluentValidation with the Options Pattern in ASP.NET Core to validate configuration at startup, providing a robust alternative to Data Annotations for complex scenarios. The integration includes implementing custom IValidateOptions, creating extension methods, and ensuring validation through the ValidateOnStart method. This validation process helps catch configuration errors early, improving application reliability.

  4. 4
    Article
    Avatar of milanjovanovicMilan Jovanović·1y

    Better Request Tracing with User Context in ASP.NET Core

    Adding user context to request tracing in ASP.NET Core enhances troubleshooting, performance monitoring, and user behavior analysis. The post explains how to implement middleware that enriches logs with user IDs, improving the ability to track user journeys and quickly identify issues. It also discusses handling PII concerns and suggests expanding context enrichment with feature flags and tenant information.