Best of .NETFebruary 2025

  1. 1
    Article
    Avatar of techworld-with-milanTech World With Milan·1y

    Recommended learning resources for C# and .NET in 2025.

    In 2025, the .NET ecosystem continues to grow with the release of .NET 9 and C#. This post offers a curated list of learning resources for various levels, from beginners to advanced, including courses, books, and YouTube channels. Key focus areas include C#, .NET, ASP.NET, and software engineering principles. Additionally, it mentions essential tools and guides for .NET developers looking to stay ahead in their careers.

  2. 2
    Article
    Avatar of dotnetsquad.NET·1y

    Junior .NET Developer Portfolio

    A junior software engineer has launched the first version of their portfolio. The post invites the community to check out the portfolio and provide feedback.

  3. 3
    Video
    Avatar of nickchapsasNick Chapsas·1y

    Stop Using DateTime in .NET

    In most cases within .NET programming, DateTimeOffset is recommended over DateTime. DateTime only represents a date and time, which can lead to ambiguity if the time zone is unspecified. DateTimeOffset, on the other hand, includes the time zone offset from UTC, making it more precise and suitable for business applications that require client-relevant time zones. Using DateTimeOffset helps avoid errors that could arise from using DateTime with unspecified time zones.

  4. 4
    Article
    Avatar of aspnetASP.NET Blog·1y

    .NET 9 Networking Improvements

    The latest .NET 9 release introduces several networking improvements, including performance enhancements in HTTP connection pooling and auto-updating Windows proxy settings. New features in System.Net.Quic make QUIC APIs public and add more configuration options. Enhancements in HttpClientFactory include Keyed DI support and new diagnostics to focus on privacy and distributed tracing. .NET Framework compatibility improvements aim to ease the migration to .NET Core. Additionally, new Keep-Alive strategies for WebSockets and support for SSLKEYLOGFILE improve security and diagnostics.

  5. 5
    Video
    Avatar of communityCommunity Picks·1y

    Deploy Full-Stack .NET Apps for FREE in 2025 (Azure + Postgres)

    Learn how to deploy a full-stack application using React, .NET, and Postgres in the Azure cloud completely for free. The guide covers setting up the frontend with Next.js as a static web app, the backend with ASP.NET Core 9 API hosted on Azure App Service, and using a Postgres database from Superbase or Neon. It includes step-by-step instructions for deploying the application and configuring necessary services and environment variables.

  6. 6
    Video
    Avatar of nickchapsasNick Chapsas·1y

    Don't Use Lorem Ipsum. Use this!

    Using Lorem Ipsum for generating fake text in software development can be problematic as it doesn't look realistic. Instead, developers should use waffle generators, which create customizable and realistic-looking text suitable for any format. To implement this in .NET, install the waffle generator package and use the WaffleEngine class to generate text. The tool also integrates with Bogus for even more flexibility.

  7. 7
    Article
    Avatar of codemazeCode Maze·1y

    Measure Application Performance in .NET Using IMeterFactory

    Learn how to use IMeterFactory in .NET to monitor application performance. Explore different metric instruments like Counter, Gauge, and Histogram, and discover how to set up and capture these metrics in an ASP.NET Core Web API. Understand best practices for choosing metrics and learn how to visualize them using the dotnet-counters tool. Follow the step-by-step guide to implementing and testing metrics effectively.

  8. 8
    Video
    Avatar of codemonkeyunityCode Monkey·1y

    TOP 10 C# things you MIGHT not know (I didn't!)

    This post discusses various advanced C# features that the author learned while creating a comprehensive C# course. Highlights include top-level statements for cleaner code, local functions for improved scope management, the use of reflection for dynamic code inspection and execution, and specific terminology clarifications within C# such as methods, access modifiers, parameters, and arguments. The author covers other features like LINQ's query syntax, enum flags, and useful tools in Unity's UI toolkit.

  9. 9
    Video
    Avatar of communityCommunity Picks·1y

    NO SWAGGER? NO PROBLEM! OpenAPI Made Easy in .NET 9

    Starting with .NET 9, Swagger has been removed as the default OpenAPI package. The new approach involves using the Microsoft ASP.NET Core OpenAPI package to create OpenAPI documents. Various UI alternatives such as Swagger UI, Redoc, and Skaler can be integrated into the .NET 9 applications for better API documentation. Detailed guidance on setting up these UI options along with customizing command definitions for API services within .NET Aspire is provided.

  10. 10
    Article
    Avatar of dotnet.NET Blog·1y

    Announcing Chroma DB C# SDK

    Chroma, an open-source database for AI applications, now has a C# SDK. It supports embedding storage, metadata filtering, vector search, full-text search, and document storage. You can integrate Chroma into .NET applications using the ChromaDB.Client package. Example operations include creating collections, adding data representations (such as movie descriptions), and performing vector searches. The new SDK simplifies AI solutions implementation in .NET and supports integration with Microsoft's AI and data components.

  11. 11
    Article
    Avatar of telerikTelerik·1y

    10 Essential ASP.NET Core Features to Remember

    ASP.NET Core offers features like pattern matching, local functions, and extension methods to make code cleaner and more efficient. The post explores how these features can be applied, including examples using pattern matching, static methods, tuples, expression-bodied members, scoped namespaces, records, delegates, global usings, data annotations, and generics. Emphasis is placed on the simplicity and efficiency these features provide in various scenarios.

  12. 12
    Article
    Avatar of infoworldInfoWorld·1y

    Understanding thread synchronization in C#

    Learn the core concepts of thread synchronization in C# to ensure thread safety and prevent deadlocks. The post covers the use of locks, Mutex, Semaphore, and SpinLock structures, and offers best practices for implementing synchronization in .NET applications. Examples and detailed explanations of how to use the lock statement, Monitor class, and non-exclusive locks like SemaphoreSlim and ReaderWriterLockSlim are also provided.

  13. 13
    Article
    Avatar of devblogsDevBlogs·1y

    .NET 10 Preview 1 is now available!

    The first preview release of .NET 10 is now available, bringing enhancements across .NET Runtime, SDK, libraries, C#, ASP.NET Core, Blazor, and .NET MAUI. Key improvements include new library methods, runtime optimizations, and updates to C# and F#. OpenAPI 3.1 support, Android and iOS enhancements, and updates to Entity Framework Core are also included. Developers are encouraged to install the .NET 10 SDK and use the latest Visual Studio 2022 preview.

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

    Stop Conflating CQRS and MediatR

    The post clarifies the distinction between the CQRS pattern and the MediatR library, which are often misconceived as inherently linked. CQRS is an architectural principle that separates read and write operations, while MediatR implements the mediator pattern to reduce dependencies between components. The post discusses the benefits and challenges of using these tools together and provides examples of implementing CQRS with and without MediatR.

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

    Introduction to Dapr for .NET Developers

    Dapr (Distributed Application Runtime) simplifies building microservices for .NET developers by abstracting infrastructure complexity behind consistent APIs. It offers essential building blocks like service invocation, state management, pub/sub, and secrets management, and uses the sidecar pattern to handle cross-cutting concerns like security and observability. This allows developers to focus on business logic and avoid vendor lock-in. Dapr seamlessly integrates with .NET and ASP.NET Core, providing a flexible and production-ready solution for distributed systems.

  16. 16
    Article
    Avatar of softwaretestingmagazineSoftware Testing Magazine·1y

    .NET Testing Best Practices

    ASP.NET Core emphasizes testability, utilizing the xUnit framework for testing. xUnit.net, an open source tool authored by the creator of NUnit v2, supports unit testing across various .NET languages. It integrates seamlessly with command line tools, Visual Studio, and other development environments. The presentation demonstrates how to incorporate tests into an ASP.NET Core project and simplify dependencies.

  17. 17
    Article
    Avatar of elmahelmah.io·1y

    Unlocking delegate's potential in C#

    Delegates in C# are function pointers that allow method calls to be decoupled from the caller. They can encapsulate multiple methods and help in event-driven programming and callback patterns. Delegates support multicasting and lambda expressions for simpler usage, enhancing code flexibility and maintainability.

  18. 18
    Video
    Avatar of nickchapsasNick Chapsas·1y

    The Most Cursed C# Library

    This tip introduces a creative yet unconventional C# library called 'interpolated pauser'. It allows you to extract variables from a string using a template through reverse string interpolation, making variable extraction simpler without the need for complex regular expressions. The library can be installed via the 'interpolated pauser yid' package.

  19. 19
    Video
    Avatar of nickchapsasNick Chapsas·1y

    Annoy Your C# Colleagues With This

  20. 20
    Video
    Avatar of nickchapsasNick Chapsas·1y

    Solving A Naming Problem in .NET

    C# 12 introduces the 'Alias any type' feature, allowing you to use the 'using' directive to create aliases for any type in your project. This simplifies complex type names, resolves naming conflicts, defines value Tuple types for shared use in assemblies, and enhances code clarity with descriptive names.

  21. 21
    Video
    Avatar of zoranhorvatZoran Horvat·1y

    Master CQRS Queries in EF Core: Optimize for Speed and Efficiency

    Learn how to optimize database queries using the CQRS principle in Entity Framework Core. This involves separating queries from commands, projecting queries to collect only necessary data, and efficiently using resources by minimizing database calls. The post provides a practical guide, including code examples, to illustrate how to implement CQRS in a Minimal API application.

  22. 22
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    How to Use FakeLogger to Make Testing Easier In .Net

    This post explains how to simplify testing logging functionality in .NET using the new FakeLogger feature available from .NET 8 upwards. It covers the challenges of mocking ILogger, the steps for setting up and using FakeLogger, and the benefits of combining it with FluentAssertions for clearer and more maintainable tests. The post includes examples and detailed explanations to help developers efficiently verify log messages in their unit tests.

  23. 23
    Article
    Avatar of hnHacker News·1y

    Why Tracebit is written in C#

    The choice of C# for developing Tracebit, a B2B SaaS Security Product, was driven by several key factors: productivity, being free and open source, cross-platform capabilities, popularity, memory safety, garbage collection, static typing, stability, and extensive tooling and features. The author highlights the productivity gains, the advantage of open-source .NET, and the comprehensive tooling ecosystem as significant benefits. Despite initial hesitations, C# has proven to be a robust and efficient choice, surpassing expectations.

  24. 24
    Article
    Avatar of circleCircleCI·1y

    CI/CD for .NET microservices development

    CI/CD pipelines are crucial for .NET microservices development, enabling faster and more stable development and deployment cycles. They help automate testing, manage service coordination, and orchestrate containerized environments. Tools like MSBuild, xUnit, Kubernetes, and CircleCI enhance this process by providing specialized capabilities for build acceleration, cross-platform execution, and scalable infrastructure.

  25. 25
    Article
    Avatar of codemazeCode Maze·1y

    Hybrid Caching in ASP.NET Core

    Hybrid caching in .NET combines in-memory and distributed caching for fast access and persistence. The hybrid caching feature in .NET is in preview and available via the `Microsoft.Extension.Caching.Hybrid` NuGet package. This post provides a guide on implementing and configuring hybrid caching, highlights its benefits, such as cache stampede protection, tag-based invalidation, and async flow design, and compares it to existing caching mechanisms.