Tag: .NET
All the articles with the tag ".NET".
- Hosting the .NET Aspire Dashboard as a Standalone Container in Azure Web Apps Run the .NET Aspire dashboard as a standalone container in Azure Web Apps to view OpenTelemetry traces, metrics and logs, including the HTTP/2 and gRPC setup.
- Keyed Services (Named registrations) in .NET Service Provider Keyed services in .NET 8 let you register several implementations of one interface under a key, and inject the right one without factories or switch statements.
- TimeProvider and the End of Untestable DateTime.Now DateTime.Now is hard to test. Since .NET 8, TimeProvider replaces your own clock wrapper: how to inject it and control time in tests with FakeTimeProvider.
- Discriminated unions in C# 15: the union keyword in .NET 11 C# 15 adds a union keyword for discriminated unions in .NET 11: declaring union types, implicit conversions, exhaustive switch and null handling.
- Test-Driving Windows 11 Dev Drive for .NET I moved part of my .NET workflow to a Windows 11 Dev Drive (ReFS): how to set it up, move NuGet, Maven, Gradle and npm caches, and whether it feels faster.
- Provide opt-in to experimental APIs using C#12 ExperimentalAttribute C# 12 adds ExperimentalAttribute so library authors can mark APIs as experimental and make consumers explicitly opt in. How it works and how to suppress it.
- Running Large Language Models locally – Your own ChatGPT-like AI in C# How to run a large language model locally on your own CPU and use it from C#, for a ChatGPT-like AI without OpenAI or cloud services.
- How to test ASP.NET Core Minimal APIs How to test ASP.NET Core Minimal APIs without deploying: test a hello world endpoint and a JSON API, then swap out services in the test host.
- Techniques and tools to update your C# project - Migrating to nullable reference types - Part 4 Techniques and tools to migrate an existing C# project to nullable reference types, from picking an approach to the annotation context per file or project.
- Annotating your C# code - Migrating to nullable reference types - Part 3 The attributes and annotations you can use to help C# flow analysis understand your code, so you and your library consumers get more reliable null hints.