API Documentation Changes in .NET 9
The removal of Swagger from .NET 9 and the introduction of built-in OpenAPI support mark a significant shift in the .NET ecosystem. While this change may require developers to adapt to new tools and workflows, it also presents an opportunity to streamline and improve the API development process. The built-in OpenAPI support in .NET 9 offers a more integrated and efficient solution for generating and managing API documentation, while alternative solutions such as NSwag, ReDoc, Stoplight and Scalar provide developers with a range of options to choose from.
.NET object-oriented fluent SQL Builder
KnightMoves.SqlObjects is a .NET NuGet package that provides an object-oriented fluent SQL builder, allowing developers to construct SQL queries using C# objects instead of string manipulation, closely mirroring T-SQL syntax for a more intuitive experience.
Random.Shared in .NET9
With .NET9 Microsoft introduced Random.Shared for for thread-safe random number generation.
.NET LINQ vs Java Stream API
In Java, the closest equivalent to .NET's LINQ (Language Integrated Query) is the Stream API introduced in Java 8. Both LINQ in .NET and the Stream API in Java provide a functional approach to handling collections, enabling operations like filtering, mapping, reducing, and sorting in a concise and readable manner. However, there are significant differences in how these two approaches leverage hardware acceleration, which can impact performance.
Simplifying Dependency Injection
Dependency Injection (DI) is a cornerstone of modern .NET applications, ensuring loose coupling, testability, and maintainability. However, traditional DI configurations can quickly become verbose and boilerplate-heavy. Developers often find themselves manually registering every service, leading to cluttered Program.cs
files and a tedious onboarding experience. Campsis.AutoInject comes to the rescue!
Critical: .NET Install links are changing
.NET binaries and installers have moved to a new domain -- builds.dotnet.microsoft.com
-- backed by a new Content Delivery Network (CDN). You may need to make changes to adjust.
Global and implicit Using statements in C# 10
Global and implicit Using statements in C# 10 reduce the number of usings you need to specify at the top of each file.
File-scoped Namespaces in C# 10
File-scoped Namespaces in C# 10 simplify your code and removes a level of nesting.
Parsing Command Line Arguments in .NET Core
Using the natemcmaster/CommandLineUtils in C# for parsing CommandLine Arguments and Options with easy.
MSFT Workshop - All about Microservices
Video Series from .NET Conf 2020: What are microservices? How they work? Their benefits and challenges? The problems they solve. How to design and deploy them (~4.5 hours).