Gérald Barré
meziantou.net
Gérald Barré
@meziantou.net
Microsoft MVP, Software engineer, blogger
https://www.meziantou.net/
Don't forget the leap second...
November 2, 2025 at 3:15 AM
No need to write it yourself. You can use `Microsoft.CodeAnalysis.BannedApiAnalyzers` with `T:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute`
August 16, 2025 at 3:45 PM
You need to call one win32 method to exclude your windows from Recall and screen capture. Web browsers aren't special kids.
learn.microsoft.com/en-us/window...

.NET example: www.meziantou.net/how-to-exclu...
SetWindowDisplayAffinity function (winuser.h) - Win32 apps
Stores the display affinity setting in kernel mode on the hWnd associated with the window.
learn.microsoft.com
July 25, 2025 at 1:45 PM
CS4014 is ok for async methods. If you are in a non-async context, you need an extra analyzer such as github.com/meziantou/Me...

learn.microsoft.com/en-us/dotnet...
github.com
April 18, 2025 at 4:00 PM
You cannot access local files if you use a data URL. A solution is to write the html page to the disk and open it in playwright (I've added a note to the post). Another solution would be to intercept network request and provide a response (page.RouteAsync)
www.meziantou.net/generate-pdf...
Generate PDF files using an html template and Playwright - Gérald Barré
In this post, I describe how to generate a PDF document using an html template and Playwright.
www.meziantou.net
February 15, 2025 at 7:25 PM