Gérald Barré
@meziantou.net
📤 191
📥 94
📝 33
Microsoft MVP, Software engineer, blogger
https://www.meziantou.net/
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
loading . . .
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.
https://www.meziantou.net/using-git-insteadof-to-automatically-replace-https-urls-with-ssh.htm?utm_medium=social&utm_source=bluesky
about 1 hour ago
0
0
0
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
loading . . .
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.
https://www.meziantou.net/batch-migrate-sln-files-to-slnx-format-across-repositories.htm?utm_medium=social&utm_source=bluesky
7 days ago
0
3
0
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
loading . . .
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.
https://www.meziantou.net/using-multiple-loopback-addresses-for-socket-binding.htm?utm_medium=social&utm_source=bluesky
28 days ago
0
0
0
Git Worktree: Managing Multiple Working Directories #git
https://www.meziantou.net/git-worktree-managing-multiple-working-directories.htm?utm_medium=social&utm_source=bluesky
loading . . .
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.
https://www.meziantou.net/git-worktree-managing-multiple-working-directories.htm?utm_medium=social&utm_source=bluesky
about 1 month ago
0
2
0
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
loading . . .
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.
https://www.meziantou.net/accessing-windows-known-folders-in-csharp-with-shgetknownfolderpath.htm?utm_medium=social&utm_source=bluesky
about 1 month ago
1
1
0
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
loading . . .
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.
https://www.meziantou.net/how-to-find-public-symbols-that-can-be-internal-using-roslyn.htm?utm_medium=social&utm_source=bluesky
3 months ago
1
4
2
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
loading . . .
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.
https://www.meziantou.net/how-to-exclude-your-windows-app-from-screen-capture-and-recall.htm?utm_medium=social&utm_source=bluesky
3 months ago
0
0
0
Automatically Rerun Failed GitHub Actions Workflows #github
https://www.meziantou.net/automatically-rerun-failed-github-actions-workflows.htm?utm_medium=social&utm_source=bluesky
loading . . .
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.
https://www.meziantou.net/automatically-rerun-failed-github-actions-workflows.htm?utm_medium=social&utm_source=bluesky
4 months ago
0
1
0
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
loading . . .
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.
https://www.meziantou.net/automating-null-forgiving-operator-removal-in-csharp-projects.htm?utm_medium=social&utm_source=bluesky
4 months ago
1
2
0
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
loading . . .
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.
https://www.meziantou.net/use-csharp-14-extensions-to-simplify-enum-parsing.htm?utm_medium=social&utm_source=bluesky
5 months ago
0
4
1
reposted by
Gérald Barré
Anthony Simmon
5 months ago
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
loading . . .
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.
https://medium.com/workleap/how-workleap-uses-net-aspire-to-transform-local-development-f73cb48f6673
0
15
6
reposted by
Gérald Barré
Richard Clark - devdevdev.net
6 months ago
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
⬇️⬇️⬇️
1
3
3
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
loading . . .
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.
https://www.meziantou.net/using-snapshot-testing-to-validate-ef-core-schema.htm?utm_medium=social&utm_source=bluesky
8 months ago
0
1
0
reposted by
Gérald Barré
xUnit.net
8 months ago
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
loading . . .
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...
https://github.com/xunit/xunit/discussions/3164
0
5
4
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
loading . . .
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.
https://www.meziantou.net/migrate-from-mstest-to-xunit-using-a-roslyn-analyzer.htm?utm_medium=social&utm_source=bluesky
8 months ago
0
0
0
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
loading . . .
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.
https://www.meziantou.net/using-roslyn-to-analyze-and-rewrite-code-in-a-solution.htm?utm_medium=social&utm_source=bluesky
8 months ago
1
9
3
Enhance Your .NET HttpClient with HSTS Support #dotnet
https://www.meziantou.net/hsts-for-httpclient-in-dotnet.htm?utm_medium=social&utm_source=bluesky
loading . . .
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.
https://www.meziantou.net/hsts-for-httpclient-in-dotnet.htm?utm_medium=social&utm_source=bluesky
9 months ago
0
4
1
Exploring CollectionsMarshal for Dictionary #dotnet
https://www.meziantou.net/exploring-collectionsmarshal-for-dictionary.htm?utm_medium=social&utm_source=bluesky
loading . . .
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.
https://www.meziantou.net/exploring-collectionsmarshal-for-dictionary.htm?utm_medium=social&utm_source=bluesky
9 months ago
0
0
1
Reading USN Journal with .NET #dotnet
https://www.meziantou.net/reading-usn-journal-with-dotnet.htm?utm_medium=social&utm_source=bluesky
loading . . .
Reading USN Journal with .NET - Gérald Barré
In this post, I describe how to read the USN Journal with .NET.
https://www.meziantou.net/reading-usn-journal-with-dotnet.htm?utm_medium=social&utm_source=bluesky
9 months ago
0
3
2
Generating SBOM for NuGet packages #NuGet #dotnet #security
https://www.meziantou.net/generating-sbom-for-nuget-packages.htm?utm_medium=social&utm_source=bluesky
loading . . .
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.
https://www.meziantou.net/generating-sbom-for-nuget-packages.htm?utm_medium=social&utm_source=bluesky
10 months ago
0
2
1
reposted by
Gérald Barré
Richard Clark - devdevdev.net
10 months ago
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
0
3
3
Using the binary log to find the source of a .NET dependency #dotnet #msbuild
https://www.meziantou.net/using-the-binary-log-to-find-the-source-of-a-dotnet-dependency.htm?utm_medium=social&utm_source=bluesky
loading . . .
Using the binary log to find the source of a .NET dependency - Gérald Barré
In this post, I describe how to use the binary log and MSBuild Structured Log Viewer to find the source of a .NET dependency.
https://www.meziantou.net/using-the-binary-log-to-find-the-source-of-a-dotnet-dependency.htm?utm_medium=social&utm_source=bluesky
10 months ago
1
9
4
reposted by
Gérald Barré
Barry Dorrans
10 months ago
They left out naps. More seriously fuck you for dismissing bug fixing, testing and securing as unimportant unproductive things.
45
363
99
NuGet Packages: security risks and best practices #NuGet #dotnet
https://www.meziantou.net/nuget-packages-security-risks-and-best-practices.htm?utm_medium=social&utm_source=bluesky
loading . . .
NuGet Packages: security risks and best practices - Gérald Barré
NuGet packages simplify code sharing, but they come with significant risks. Many developers install these packages without reviewing their contents or verifying updates, potentially exposing their systems to malicious code. This article explores the various ways NuGet packages can compromise your security, from MSBuild props and Roslyn analyzers to typo squatting and unlisted packages. Learn how to protect your projects by understanding the potential threats and implementing best practices for package management.
https://www.meziantou.net/nuget-packages-security-risks-and-best-practices.htm?utm_medium=social&utm_source=bluesky
10 months ago
0
0
0
reposted by
Gérald Barré
Jérôme Laban
10 months ago
Reposting
this article
for visibility from
@meziantou.net
, which contains how to get syntax highlighting for a string that contains C# code. I'm always forgetting how to write this :)
#dotnet
#roslyn
2
17
5
Embeded languages in string values supported by Roslyn #dotnet #roslyn
https://www.meziantou.net/embeded-languages-in-string-values-supported-by-roslyn.htm?utm_medium=social&utm_source=bluesky
loading . . .
Embeded languages in string values supported by Roslyn - Gérald Barré
In this post, I describe which languages are supported in string values by Roslyn, which powers Visual Studio, Visual Studio Code, and some other tools.
https://www.meziantou.net/embeded-languages-in-string-values-supported-by-roslyn.htm?utm_medium=social&utm_source=bluesky
11 months ago
1
1
0
Stop using diagnostic verbosity in MSBuild #dotnet #msbuild
https://www.meziantou.net/stop-using-diagnostic-verbosity-in-msbuild.htm?utm_medium=social&utm_source=bluesky
11 months ago
0
2
2
you reached the end!!
feeds!
log in