Gérald Barré
@meziantou.net
Microsoft MVP, Software engineer, blogger
https://www.meziantou.net/
https://www.meziantou.net/
C# 14 Extension Members: Enhancing Polyfill Libraries #dotnet https://www.meziantou.net/csharp-14-extension-members-enhancing-polyfill-libraries.htm?utm_medium=social&utm_source=bluesky
C# 14 Extension Members: Enhancing Polyfill Libraries - Gérald Barré
Discover how C# 14 extension members extend beyond instance methods to include properties and static methods, enabling more comprehensive polyfill libraries.
www.meziantou.net
November 11, 2025 at 2:35 PM
C# 14 Extension Members: Enhancing Polyfill Libraries #dotnet https://www.meziantou.net/csharp-14-extension-members-enhancing-polyfill-libraries.htm?utm_medium=social&utm_source=bluesky
Thread-Safe Initialization with LazyInitializer #dotnet https://www.meziantou.net/thread-safe-initialization-with-lazyinitializer.htm?utm_medium=social&utm_source=bluesky
Thread-Safe Initialization with LazyInitializer - Gérald Barré
Learn how to use LazyInitializer.EnsureInitialized for thread-safe initialization in .NET as an alternative to Lazy<T> class.
www.meziantou.net
October 21, 2025 at 2:33 PM
Thread-Safe Initialization with LazyInitializer #dotnet https://www.meziantou.net/thread-safe-initialization-with-lazyinitializer.htm?utm_medium=social&utm_source=bluesky
Understanding When Type.FullName Returns Null in .NET #dotnet https://www.meziantou.net/understanding-when-type-fullname-returns-null-in-dotnet.htm?utm_medium=social&utm_source=bluesky
Understanding When Type.FullName Returns Null in .NET - Gérald Barré
Learn about the specific scenarios in .NET where Type.FullName returns null, including generic types with open parameters and function pointers.
www.meziantou.net
October 14, 2025 at 2:35 PM
Understanding When Type.FullName Returns Null in .NET #dotnet https://www.meziantou.net/understanding-when-type-fullname-returns-null-in-dotnet.htm?utm_medium=social&utm_source=bluesky
How to Find an Available Network Port for a server in .NET #dotnet https://www.meziantou.net/how-to-find-an-available-network-port-in-dotnet.htm?utm_medium=social&utm_source=bluesky
How to Find an Available Network Port for a server in .NET - Gérald Barré
Learn how to find an available network port in .NET using the Socket class. This is useful for server applications, testing, and development tools that need to bind to ports without conflicts.
www.meziantou.net
October 7, 2025 at 2:35 PM
How to Find an Available Network Port for a server in .NET #dotnet https://www.meziantou.net/how-to-find-an-available-network-port-in-dotnet.htm?utm_medium=social&utm_source=bluesky
Using Git insteadOf to Automatically Replace HTTPS URLs with SSH #git https://www.meziantou.net/using-git-insteadof-to-automatically-replace-https-urls-with-ssh.htm?utm_medium=social&utm_source=bluesky
Using Git insteadOf to Automatically Replace HTTPS URLs with SSH - Gérald Barré
In this post, I describe how to use Git's insteadOf configuration to automatically rewrite HTTPS URLs to SSH URLs for seamless authentication.
www.meziantou.net
September 30, 2025 at 2:33 PM
Using Git insteadOf to Automatically Replace HTTPS URLs with SSH #git https://www.meziantou.net/using-git-insteadof-to-automatically-replace-https-urls-with-ssh.htm?utm_medium=social&utm_source=bluesky
Batch migrate .sln files to .slnx format across repositories #dotnet https://www.meziantou.net/batch-migrate-sln-files-to-slnx-format-across-repositories.htm?utm_medium=social&utm_source=bluesky
Batch migrate .sln files to .slnx format across repositories - Gérald Barré
Learn how to batch migrate .sln solution files to the new .slnx format across multiple repositories using automated tools.
www.meziantou.net
September 23, 2025 at 2:35 PM
Batch migrate .sln files to .slnx format across repositories #dotnet https://www.meziantou.net/batch-migrate-sln-files-to-slnx-format-across-repositories.htm?utm_medium=social&utm_source=bluesky
Using Multiple Loopback Addresses for Socket Binding #dotnet https://www.meziantou.net/using-multiple-loopback-addresses-for-socket-binding.htm?utm_medium=social&utm_source=bluesky
Using Multiple Loopback Addresses for Socket Binding - Gérald Barré
Learn how to use multiple loopback addresses beyond 127.0.0.1 for socket binding, allowing multiple services to run on the same port by using different addresses in the 127.0.0.0/8 range for testing and development.
www.meziantou.net
September 2, 2025 at 2:35 PM
Using Multiple Loopback Addresses for Socket Binding #dotnet https://www.meziantou.net/using-multiple-loopback-addresses-for-socket-binding.htm?utm_medium=social&utm_source=bluesky
Git Worktree: Managing Multiple Working Directories #git https://www.meziantou.net/git-worktree-managing-multiple-working-directories.htm?utm_medium=social&utm_source=bluesky
Git Worktree: Managing Multiple Working Directories - Gérald Barré
Learn how to use Git worktree to manage multiple working directories from a single repository, enabling parallel development workflows.
www.meziantou.net
August 26, 2025 at 2:34 PM
Git Worktree: Managing Multiple Working Directories #git https://www.meziantou.net/git-worktree-managing-multiple-working-directories.htm?utm_medium=social&utm_source=bluesky
Accessing Windows Known Folders in C# with SHGetKnownFolderPath #dotnet https://www.meziantou.net/accessing-windows-known-folders-in-csharp-with-shgetknownfolderpath.htm?utm_medium=social&utm_source=bluesky
Accessing Windows Known Folders in C# with SHGetKnownFolderPath - Gérald Barré
Learn how to access Windows Known Folders like Downloads and Desktop using SHGetKnownFolderPath API in C# when Environment.GetFolderPath is insufficient.
www.meziantou.net
August 19, 2025 at 2:35 PM
Accessing Windows Known Folders in C# with SHGetKnownFolderPath #dotnet https://www.meziantou.net/accessing-windows-known-folders-in-csharp-with-shgetknownfolderpath.htm?utm_medium=social&utm_source=bluesky
How to Find Public Symbols That Can Be Internal Using Roslyn #dotnet #roslyn https://www.meziantou.net/how-to-find-public-symbols-that-can-be-internal-using-roslyn.htm?utm_medium=social&utm_source=bluesky
How to Find Public Symbols That Can Be Internal Using Roslyn - Gérald Barré
Learn how to use Roslyn to analyze your .NET solution and identify public symbols that are only used internally and can be safely changed to internal.
www.meziantou.net
July 1, 2025 at 2:35 PM
How to Find Public Symbols That Can Be Internal Using Roslyn #dotnet #roslyn https://www.meziantou.net/how-to-find-public-symbols-that-can-be-internal-using-roslyn.htm?utm_medium=social&utm_source=bluesky
How to Exclude Your Windows App from Screen Capture and Recall #dotnet #windows https://www.meziantou.net/how-to-exclude-your-windows-app-from-screen-capture-and-recall.htm?utm_medium=social&utm_source=bluesky
How to Exclude Your Windows App from Screen Capture and Recall - Gérald Barré
Learn how to prevent your Windows app from being captured by screen recording and screenshot tools using SetWindowDisplayAffinity.
www.meziantou.net
June 24, 2025 at 2:36 PM
How to Exclude Your Windows App from Screen Capture and Recall #dotnet #windows https://www.meziantou.net/how-to-exclude-your-windows-app-from-screen-capture-and-recall.htm?utm_medium=social&utm_source=bluesky
Automatically Rerun Failed GitHub Actions Workflows #github https://www.meziantou.net/automatically-rerun-failed-github-actions-workflows.htm?utm_medium=social&utm_source=bluesky
Automatically Rerun Failed GitHub Actions Workflows - Gérald Barré
This post explains how to automatically rerun failed GitHub Actions workflows using the workflow_run event and specific conditions.
www.meziantou.net
June 17, 2025 at 2:36 PM
Automatically Rerun Failed GitHub Actions Workflows #github https://www.meziantou.net/automatically-rerun-failed-github-actions-workflows.htm?utm_medium=social&utm_source=bluesky
Automating Null-Forgiving Operator Removal in C# Projects #dotnet https://www.meziantou.net/automating-null-forgiving-operator-removal-in-csharp-projects.htm?utm_medium=social&utm_source=bluesky
Automating Null-Forgiving Operator Removal in C# Projects - Gérald Barré
In this post, I describe how to automate the removal of the null-forgiving operator in C# projects using tools like Roslyn and MSBuildWorkspace.
www.meziantou.net
June 3, 2025 at 2:36 PM
Automating Null-Forgiving Operator Removal in C# Projects #dotnet https://www.meziantou.net/automating-null-forgiving-operator-removal-in-csharp-projects.htm?utm_medium=social&utm_source=bluesky
Use C# 14 extensions to simplify enum Parsing #dotnet https://www.meziantou.net/use-csharp-14-extensions-to-simplify-enum-parsing.htm?utm_medium=social&utm_source=bluesky
Use C# 14 extensions to simplify enum Parsing - Gérald Barré
Learn how to use C# 14 extensions to simplify enum parsing, making your code more consistent, intuitive, and easier to understand.
www.meziantou.net
May 13, 2025 at 2:36 PM
Use C# 14 extensions to simplify enum Parsing #dotnet https://www.meziantou.net/use-csharp-14-extensions-to-simplify-enum-parsing.htm?utm_medium=social&utm_source=bluesky
Reposted by Gérald Barré
Just dropped a deep‑dive on how we built Leap, an opinionated, reliable CLI tool powered by .NET Aspire to make distributed system development easier for all Workleap developers 🚀.
medium.com/workleap/how...
#dotnet #aspire
medium.com/workleap/how...
#dotnet #aspire
How Workleap uses .NET Aspire to transform local development
We built Leap, an opinionated, reliable CLI tool to distribute .NET Aspire to all Workleap developers.
medium.com
May 12, 2025 at 4:55 PM
Just dropped a deep‑dive on how we built Leap, an opinionated, reliable CLI tool powered by .NET Aspire to make distributed system development easier for all Workleap developers 🚀.
medium.com/workleap/how...
#dotnet #aspire
medium.com/workleap/how...
#dotnet #aspire
Reposted by Gérald Barré
Notre table ronde d'Avril est disponible en podcast et sur Youtube. Au menu dapr Agent, .NET 10, Aspire 9.2, Typescript en Go et UWP avec .NET 9.
Animé par @anthonysimmon.com, @meziantou.net, @laurentkempe.com, Clément Sannier, Jérémy Jeanson et moi-même #podcast
⬇️⬇️⬇️
Animé par @anthonysimmon.com, @meziantou.net, @laurentkempe.com, Clément Sannier, Jérémy Jeanson et moi-même #podcast
⬇️⬇️⬇️
April 9, 2025 at 5:39 AM
Notre table ronde d'Avril est disponible en podcast et sur Youtube. Au menu dapr Agent, .NET 10, Aspire 9.2, Typescript en Go et UWP avec .NET 9.
Animé par @anthonysimmon.com, @meziantou.net, @laurentkempe.com, Clément Sannier, Jérémy Jeanson et moi-même #podcast
⬇️⬇️⬇️
Animé par @anthonysimmon.com, @meziantou.net, @laurentkempe.com, Clément Sannier, Jérémy Jeanson et moi-même #podcast
⬇️⬇️⬇️
Using Snapshot Testing to validate EF Core schema #EFCore #dotnet https://www.meziantou.net/using-snapshot-testing-to-validate-ef-core-schema.htm?utm_medium=social&utm_source=bluesky
Using Snapshot Testing to validate EF Core schema - Gérald Barré
In this post, I describe how to use snapshot testing to validate the schema generated by Entity Framework Core.
www.meziantou.net
February 11, 2025 at 2:33 PM
Using Snapshot Testing to validate EF Core schema #EFCore #dotnet https://www.meziantou.net/using-snapshot-testing-to-validate-ef-core-schema.htm?utm_medium=social&utm_source=bluesky
Reposted by Gérald Barré
We are considering changing some of the options for the ways tests run in parallel against one another. Please read this and add your thoughts. Thanks!
github.com/xunit/xunit/...
#DotNet #UnitTest
github.com/xunit/xunit/...
#DotNet #UnitTest
Looking for suggestions on improving parallelism · xunit xunit · Discussion #3164
We have two open issues right now related to how tests run in parallel: #1986 #2055 As I work through what the options for parallelism should be, I'm thinking maybe trying to set up a strict list o...
github.com
February 10, 2025 at 4:49 AM
We are considering changing some of the options for the ways tests run in parallel against one another. Please read this and add your thoughts. Thanks!
github.com/xunit/xunit/...
#DotNet #UnitTest
github.com/xunit/xunit/...
#DotNet #UnitTest
Migrate from MSTest to xUnit using a Roslyn analyzer #dotnet #xunit https://www.meziantou.net/migrate-from-mstest-to-xunit-using-a-roslyn-analyzer.htm?utm_medium=social&utm_source=bluesky
Migrate from MSTest to xUnit using a Roslyn analyzer - Gérald Barré
In this post, I describe how to migrate from MSTest to xUnit using the Meziantou.MSTestToXunitAnalyzer Roslyn analyzer.
www.meziantou.net
February 4, 2025 at 2:33 PM
Migrate from MSTest to xUnit using a Roslyn analyzer #dotnet #xunit https://www.meziantou.net/migrate-from-mstest-to-xunit-using-a-roslyn-analyzer.htm?utm_medium=social&utm_source=bluesky
Using Roslyn to analyze and rewrite code in a solution #dotnet #roslyn https://www.meziantou.net/using-roslyn-to-analyze-and-rewrite-code-in-a-solution.htm?utm_medium=social&utm_source=bluesky
Using Roslyn to analyze and rewrite code in a solution - Gérald Barré
In this post, I describe how to use Roslyn as a library to analyze and rewrite code in a solution.
www.meziantou.net
January 21, 2025 at 2:33 PM
Using Roslyn to analyze and rewrite code in a solution #dotnet #roslyn https://www.meziantou.net/using-roslyn-to-analyze-and-rewrite-code-in-a-solution.htm?utm_medium=social&utm_source=bluesky
Enhance Your .NET HttpClient with HSTS Support #dotnet https://www.meziantou.net/hsts-for-httpclient-in-dotnet.htm?utm_medium=social&utm_source=bluesky
Enhance Your .NET HttpClient with HSTS Support - Gérald Barré
In this post, I describe how to create an HttpClient that automatically upgrade requests to https based on HSTS preload list and response header.
www.meziantou.net
January 14, 2025 at 2:33 PM
Enhance Your .NET HttpClient with HSTS Support #dotnet https://www.meziantou.net/hsts-for-httpclient-in-dotnet.htm?utm_medium=social&utm_source=bluesky
Exploring CollectionsMarshal for Dictionary #dotnet https://www.meziantou.net/exploring-collectionsmarshal-for-dictionary.htm?utm_medium=social&utm_source=bluesky
Exploring CollectionsMarshal for Dictionary - Gérald Barré
In this post, I explore how to use the CollectionsMarshal class to efficiently add or update key-value pairs in a Dictionary.
www.meziantou.net
January 7, 2025 at 3:03 PM
Exploring CollectionsMarshal for Dictionary #dotnet https://www.meziantou.net/exploring-collectionsmarshal-for-dictionary.htm?utm_medium=social&utm_source=bluesky
Reading USN Journal with .NET #dotnet https://www.meziantou.net/reading-usn-journal-with-dotnet.htm?utm_medium=social&utm_source=bluesky
Reading USN Journal with .NET - Gérald Barré
In this post, I describe how to read the USN Journal with .NET.
www.meziantou.net
December 24, 2024 at 2:32 PM
Reading USN Journal with .NET #dotnet https://www.meziantou.net/reading-usn-journal-with-dotnet.htm?utm_medium=social&utm_source=bluesky
Generating SBOM for NuGet packages #NuGet #dotnet #security https://www.meziantou.net/generating-sbom-for-nuget-packages.htm?utm_medium=social&utm_source=bluesky
Generating SBOM for NuGet packages - Gérald Barré
In this post, I describe how to easily generate a Software Bill of Materials (SBOM) for NuGet packages.
www.meziantou.net
December 17, 2024 at 2:35 PM
Generating SBOM for NuGet packages #NuGet #dotnet #security https://www.meziantou.net/generating-sbom-for-nuget-packages.htm?utm_medium=social&utm_source=bluesky
Reposted by Gérald Barré
Dernier épisode consacré aux nouveautés de .NET 9 : C# 13, la BCL et le tooling/SDK. Avec @meziantou.net et Patrick Smacchia de NDepend. devdevdev.net/net-9-c-13-l...
#csharp #dotnet #dotnet9 #ndepend #mvpbuzz
#csharp #dotnet #dotnet9 #ndepend #mvpbuzz
December 16, 2024 at 6:32 AM
Dernier épisode consacré aux nouveautés de .NET 9 : C# 13, la BCL et le tooling/SDK. Avec @meziantou.net et Patrick Smacchia de NDepend. devdevdev.net/net-9-c-13-l...
#csharp #dotnet #dotnet9 #ndepend #mvpbuzz
#csharp #dotnet #dotnet9 #ndepend #mvpbuzz