skip to content
Relatively General .NET

Convert DateTime to user's time zone with Blazor in .NET 8

by Gérald Barré

posted on: March 25, 2024

This post is an update of the original post Convert DateTime to user's time zone with server-side Blazor to take advantage of new .NET 8 features. It is inspired by the following pull request in dotnet/aspireWhen you display DateTime data to a user, you may want to convert the value to the user's t

Generate OpenAPI specification at build time from the code in ASP.NET Core

by Gérald Barré

posted on: March 18, 2024

The OpenAPI specification is a powerful tool to describe and document APIs. It is a standard that allows you to define the structure of your API, including the endpoints, the request and response models, and the security requirements. The OpenAPI specification is a JSON or YAML file that can be use

Unity extension for Visual Studio Code – Now Generally Available

by Jb Evain

posted on: March 12, 2024

We are thrilled to announce the general availability of the Unity extension for Visual Studio Code. This extension, built upon the C# Dev Kit and C# extensions, gives you a comprehensive toolkit for your Unity development in Visual Studio Code across Windows, macOS, and Linux.

Understanding System.Diagnostics DiagnosticSource and DiagnosticListener (Part 1)

by Steve Gordon

posted on: March 11, 2024

Throughout its history, .NET has evolved various mechanisms to “log” diagnostic information inside applications and libraries, including TraceSource, EventSource, ILogger, and DiagnosticSource, the subject of this post. TraceSource is a legacy option and is rarely used in new code. ILogger is a simple structured logging abstraction that is well suited to many applications, although it […]

Set a blank page for new tabs in Microsoft Edge

by Gérald Barré

posted on: March 11, 2024

Microsoft Edge can be configured using the setting pages edge://settings. However, some settings are not available in the UI. For instance, you cannot replace the new tab page. You can only configure the content of the page… So, you have to stick with the Edge-like page with news and other stuff yo