Best of .NETJune 2025

  1. 1
    Article
    Avatar of tilThis is Learning·51w

    Tips for Improving API Performance in ASP.NET Core

    Performance optimization techniques for ASP.NET Core APIs include using proper async/await patterns, implementing pagination for large datasets, utilizing AsNoTracking() for read-only operations, enabling response compression with Gzip or Brotli, implementing caching strategies with IMemoryCache or distributed cache, and avoiding overfetching by using DTOs. The guide provides practical code examples and warns against common pitfalls like blocking calls with .Result or .Wait().

  2. 2
    Video
    Avatar of awesome-codingAwesome·49w

    C# is cool again and you can't avoid it anymore...

    C# has evolved significantly from its enterprise-focused origins into a modern, cross-platform language with features like records, pattern matching, nullable reference types, and async/await. The .NET ecosystem has been transformed with .NET Core (now simply .NET), offering cross-platform support, modular architecture, and excellent performance. Modern C# includes minimal APIs for quick web development, LINQ for database querying, source generators for compile-time code generation, and frameworks like Blazor for frontend development and MAUI for cross-platform mobile apps.

  3. 3
    Article
    Avatar of milanjovanovicMilan Jovanović·48w

    Monitoring .NET Applications with OpenTelemetry and Grafana

    Learn how to implement comprehensive observability for .NET applications using OpenTelemetry and Grafana Cloud. The guide covers installing OpenTelemetry packages, configuring automatic instrumentation for ASP.NET Core, Entity Framework, and other libraries, setting up OTLP export to Grafana Cloud, and viewing traces and logs in unified dashboards. This setup provides distributed tracing, log correlation, and monitoring capabilities that scale from single services to complex microservice architectures.

  4. 4
    Article
    Avatar of syncfusionSyncfusion·48w

    7 Underrated C# 12 and C# 13 Features Every Developer Should Know!

    C# 12 and C# 13 introduce several underrated features that significantly improve code quality and performance. Key highlights include collection expressions for cleaner syntax, inline arrays for memory optimization, ref readonly parameters for efficient struct handling, type aliases for complex generics, typed exceptions for better error handling, params span for allocation-free variadic functions, and warning wave 7 for code quality improvements. These features enhance developer productivity while preparing codebases for C# 14's upcoming capabilities.

  5. 5
    Article
    Avatar of csharpcornerC# Corner·50w

    Unit of Work Pattern in .NET — Why You Need It and How to Implement It

    The Unit of Work pattern manages database transactions by tracking changes across multiple entities and ensuring they're committed together or not at all. This design pattern provides data consistency, abstracts transaction management from business logic, improves efficiency through batching, and enhances testability. The implementation involves creating repository interfaces, implementing them with Entity Framework Core, defining a Unit of Work interface, and coordinating multiple repositories within a single transaction boundary.

  6. 6
    Video
    Avatar of nickchapsasNick Chapsas·47w

    My 100 Tips for Better .NET Code

    A comprehensive collection of 100 practical C# and .NET development tips covering performance optimization, memory management, async programming, language features, and best practices. Topics include proper exception handling, LINQ optimization, dependency injection, modern C# syntax features like primary constructors and collection expressions, testing strategies, and common pitfalls to avoid. The tips range from basic concepts like proper null checking to advanced topics like ref structs, span usage, and memory allocation optimization.

  7. 7
    Article
    Avatar of bartwullemsThe Art of Simplicity·47w

    Browse the .NET code base with the .NET Source Browser

    The .NET Source Browser allows developers to explore Microsoft's .NET source code implementation directly. You can search for specific features like Channel.CreateBounded to understand how they're implemented internally. The browser provides search functionality and links to GitHub repositories, making it easy to learn from Microsoft's own codebase and implementation patterns.

  8. 8
    Article
    Avatar of telerikTelerik·47w

    .NET Aspire 1: What Is .NET Aspire?

    .NET Aspire is an opinionated toolkit designed to simplify cloud-native development by providing building blocks that handle common complexities like service discovery, health checks, telemetry, and secret management. The author introduces it as a solution to reduce the cognitive load of managing distributed microservices while maintaining the benefits of cloud-native architecture. The post sets up a five-part series that will demonstrate applying .NET Aspire to transform a monolithic guitar shop application into a microservices architecture.

  9. 9
    Article
    Avatar of aspnetASP.NET Blog·49w

    Improve Your Productivity with New GitHub Copilot Features for .NET!

    Microsoft has released new GitHub Copilot features for .NET development in Visual Studio 17.14 and VS Code with C# Dev Kit. Key improvements include enhanced context awareness that scans codebases for better suggestions, Microsoft Learn integration for up-to-date responses, automated method implementation through refactoring, on-demand code documentation via hover tooltips, and automatic generation of documentation comments. These features aim to make .NET development more efficient by providing more relevant AI assistance.

  10. 10
    Article
    Avatar of aspnetASP.NET Blog·49w

    .NET 10 Preview 5 is now available!

    .NET 10 Preview 5 introduces runtime performance improvements including escape analysis for delegates, inlining enhancements, and ARM64 write barrier optimizations. ASP.NET Core gains OpenAPI 3.1 support, custom HTTP.sys security descriptors, and enhanced Blazor routing with metrics. MAUI adds XAML global namespaces and web request interception. WPF receives XAML Grid syntax improvements and Fluent theme updates. F# gets scoped warning directives and compiler service enhancements.

  11. 11
    Article
    Avatar of syncfusionSyncfusion·49w

    Are Your LINQ Queries Slowing Down Your App? Here’s How to Fix Them

    LINQ queries can significantly slow down .NET applications through common performance traps like multiple enumerations, deferred execution issues, premature ToList() calls, and fetching unnecessary data. Key optimization strategies include filtering before materializing data, using Select() for projection, caching results when reused multiple times, preferring Any() over Count() > 0, and understanding when queries execute to avoid hidden database hits.

  12. 12
    Article
    Avatar of jetbrainsJetBrains·50w

    The .NET Tools Blog

    ReSharper, JetBrains' popular .NET productivity tool that has served Visual Studio developers for 20 years, is now expanding to a new development environment as an extension, bringing its code exploration, writing, and improvement capabilities to more developers.

  13. 13
    Article
    Avatar of milanjovanovicMilan Jovanović·47w

    Testcontainers Best Practices for .NET Integration Testing

    Testcontainers enables reliable .NET integration testing by spinning up real Docker containers for dependencies like PostgreSQL and Redis. Key practices include using IAsyncLifetime for container lifecycle management, implementing proper xUnit fixtures (class vs collection) based on test isolation needs, and configuring dynamic connection strings through WebApplicationFactory. The approach eliminates test pollution and provides production-like testing environments while maintaining clean separation between infrastructure setup and business logic testing.

  14. 14
    Article
    Avatar of telerikTelerik·49w

    Domain-Driven Design Principles: Value Objects in ASP.NET Core

    Value objects are immutable entities in domain-driven design that lack identity and are recognized by their values rather than unique identifiers. The article demonstrates implementing value objects in ASP.NET Core through a practical Address example, covering the creation of a base ValueObject class with equality comparison methods, proper Entity Framework Core configuration for non-entity objects, and the benefits of using value objects for domain expressiveness, immutability, and separation of concerns in software architecture.

  15. 15
    Article
    Avatar of csharpcornerC# Corner·48w

    Fixed Window vs. Sliding Window Rate Limiting in .NET

    Fixed window rate limiting resets request counters at strict time intervals, allowing potential burst traffic at the start of each window but offering simple implementation. Sliding window rate limiting uses rolling time periods to calculate request limits, providing smoother traffic distribution and preventing bursts but requiring more computational resources. Fixed window works well for simple internal APIs, while sliding window is better suited for high-traffic public APIs where smooth request flow is critical.