Centralize your packages in .NET with NuGet
A feature that isn't really new but still didn't get my attention until recently is: "Central Package Management". So let's have a look at this in this blog post.
Hey, I'm Steven a .NET Developer and Freelancer in Zurich, Switzerland. I am a Microsoft MVP. Also, this blog is open source on GitHub.
A feature that isn't really new but still didn't get my attention until recently is: "Central Package Management". So let's have a look at this in this blog post.
I know that there is a lot of fuse about TUnit and I am here writing about xUnit. I might cover TUnit in the future, but for now, the topic is the v3
prerelease of xUnit!
Join us for an exciting seminar with Fabian Gosebrink about .NET 8, Nx, and Angular! Learn the latest trends and best practices. More details: here
You might have heard that Swagger is removed in the templates of ASP.NET 9. So this blog post will show you alternatives.
In async
code it is very common to pass a CancellationToken
to the method that is being awaited. This allows the caller to cancel the operation if it is no longer needed. But this will lead to some ceremonial code that is repeated in every method. In this article I will show you how to manage CancellationToken
in a central service in ASP.NET.
I came across a very annoying "issue" with LINQ joins (left joins) in Entity Framework where the compiler drove me nuts!
I am a great fan of API tests. I do like to utilize the WebApplicationFactory
for this. I even wrote some articles about this in the past "Introduction to WebApplicationFactory". But what if we need to "mock" HttpClient
calls inside our tests?
In this blog post I will discuss the pros and cons of soft deleting records in a database versus other approaches you can take. Heat up your pop corn and get your salt ready!
I recently came across the FormattableStringFactory
to create dynamic FormattableString
instances. This is a very useful feature in combination with safe SQL queries and the SqlQuery
method of Entity Framework Core.
The .NET team has been working on a new experiment called async2, which is a new implementation of the async/await pattern that is designed to be more efficient and more flexible than the current implementation. It started with green threads and ended with an experiment that moves async
and await
to the runtime. This post will cover the journey of async2
and the conclusion of the experiment.