API Documentation Changes in .NET 9

Programming

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.

Read more...

.NET object-oriented fluent SQL Builder

Programming

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.

Read more...

Random.Shared in .NET9

Programming

With .NET9 Microsoft introduced Random.Shared for for thread-safe random number generation.

Read more...

.NET LINQ vs Java Stream API

Information

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.

Read more...

Simplifying Dependency Injection

Programming

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!

Read more...

Critical: .NET Install links are changing

Information

.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.

Read more...

Global and implicit Using statements in C# 10

Programming

Global and implicit Using statements in C# 10 reduce the number of usings you need to specify at the top of each file.

Read more...

File-scoped Namespaces in C# 10

Programming

File-scoped Namespaces in C# 10 simplify your code and removes a level of nesting.

Read more...

Parsing Command Line Arguments in .NET Core

Programming

Using the natemcmaster/CommandLineUtils in C# for parsing CommandLine Arguments and Options with easy.

Read more...

MSFT Workshop - All about Microservices

Video

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).

Read more...