Andrew Lock "Sock" @andrewlock.bsky.social · 18hUnfortunately not - interceptors work on source code, not already-compiled DLLs 010
Reposted by Andrew Lock "Sock"olegkarasik.bsky.social @olegkarasik.bsky.social · 02/10/2026Just published a new issues of .NET R&D Digest! Thanks to @lemire.bsky.social, @maartenballiauw.be, @andrewlock.bsky.social, @chrisnas.bsky.social, @meziantou.net and other great authors for their amazing content! olegkarasik.wordpress.com/2026/10/02/n... #dotnetolegkarasik.wordpress.comA new issue of .NET monthly newsletter (September 2026)This issue includes bits of life stories, concurrency, C/С++, security, AI, development tools, relational databases, SQL, XML, XPath, C#, fruit fly, Windows and of course .NET and .NET Internals. 053
Andrew Lock "Sock" @andrewlock.bsky.social · 06/10/2026Stripping extra dependencies in .NET NativeAOT apps using linker substitutions andrewlock.net/stripping-ex... In this post I describe how to perform method substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused #dotnet #nativeaotandrewlock.netStripping extra dependencies in .NET NativeAOT apps using linker substitutionsIn this post I describe how to perform method-substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused 162
Reposted by Andrew Lock "Sock"Kevin Gosse @kevingosse.net · 29/09/2026I published a new article: the hidden trap of fixed buffers in C#. It explains a quirk of fixed buffers that could easily bite you, if you're one of the few people who still have to use that feature. minidump.net/the-hidden-t...minidump.netThe hidden trap of fixed buffers in C#After all, if they’re marked as unsafe, there’s gotta be a reason, right? 295
Reposted by Andrew Lock "Sock"Christophe Nasarre @chrisnas.bsky.social · 28/09/2026Time to look at Github Copilot in the fourth episode of my long series about AI harnesses internals chrisnas.github.io/posts/2026-0...chrisnas.github.ioSpying on GitHub Copilot twice: CLI hooks versus VS CodeGitHub Copilot exposes two very different hook surfaces: a rich Copilot CLI stream with weak identity and derived turns, and a thin VS Code agent-hooks Preview with exact tool and agent IDs. 031
Reposted by Andrew Lock "Sock"ASP.NET Core News @aspnetcore.news · 25/09/2026Experimental support for Device Bound Session Credentials (DBSC) in ASP .NET Core: Exploring the .NET 11 preview - Part 8 by @andrewlock.bsky.social andrewlock.net/exploring-th... #aspnetcore 011
Andrew Lock "Sock" @andrewlock.bsky.social · 22/09/2026Blogged: Experimental support for Device Bound Session Credentials (DBSC) in ASP.NET Core - Exploring the .NET 11 preview - Part 8 andrewlock.net/exploring-th... In this post I look at the new experimental support for DBSC coming in .NET 11 #dotnet #security #aspnetcoreandrewlock.netExperimental support for Device Bound Session Credentials (DBSC) in ASP.NET Core: Exploring the .NET 11 preview - Part 8In this post I look at the new experimental support for DBSC provided by the Microsoft.AspNetCore.Authentication.DeviceBoundSessions package 083
Reposted by Andrew Lock "Sock"Kevin Gosse @kevingosse.net · 14/09/2026If you're still not convinced that we live in the future. I had my 4yo old son try "Putt-Putt", an old point&click game for children. He loves it, so I bought the whole series on Steam. However, it turns out half of them aren't localized in French, so he can't play them. 131
Andrew Lock "Sock" @andrewlock.bsky.social · 15/09/2026Understanding Device Bound Session Credentials (DBSC) andrewlock.net/understandin... In this post I provide an introduction to Device Bound Session Credentials, I look at how DBSC protects against session hijacking, and how the protocol works. #security #dotnetandrewlock.netUnderstanding Device Bound Session Credentials (DBSC)In this post I provide an introduction to Device Bound Session Credentials, I look at how DBSC protects against session hijacking, and how the protocol works 085
Reposted by Andrew Lock "Sock"olegkarasik.bsky.social @olegkarasik.bsky.social · 04/09/2026A new issue of .NET R&D digest is here! Thanks to @birgitta410.bsky.social, @andrewlock.bsky.social, @lemire.bsky.social, @meziantou.net, @maartenballiauw.be and other great authors for their amazing content! olegkarasik.wordpress.com/2026/09/04/n... #dotnetolegkarasik.wordpress.com.NET R&D Digest (August, 2026)This issue includes bits of life story, AI, C#, security, performance, Aspire, TDD, .NET and of course .NET Internals. 031
Reposted by Andrew Lock "Sock"Kevin Gosse @kevingosse.net · 04/09/2026Starting this week, my job at JetBrains changes. I'll be focusing less on ReSharper, and more on agents integration inside our IDEs (Rider, IntelliJ, ...). 152
Andrew Lock "Sock" @andrewlock.bsky.social · 01/09/2026Blogged: The pain of serializing unions and closed class hierarchies with System.Text.Json in .NET 11 andrewlock.net/exploring-th... In this post I discuss the System.Text.Json support for unions and closed hierarchies coming in .NET 11, the decisions made and some of the sharp edges I hit #dotnetandrewlock.netThe pain of serializing unions and closed class hierarchies with System.Text.Json: Exploring the .NET 11 preview - Part 7In this post I discuss the System.Text.Json support for unions and closed hierarchies coming in .NET 11, the decisions made, and some of the sharp edges I hit 1195
Reposted by Andrew Lock "Sock"Damien Bowden @damienbod.com · 01/09/2026Blogged: Using multiline Parameters for Aspire and ASP.NET Core with user secrets and Azure default deployments damienbod.com/2026/09/01/u... #aspire #aspnetcore #dotnet #azure #aca #biceps #pemdamienbod.comUsing multiline Parameters for Aspire and ASP.NET Core with user secrets and Azure default deploymentsMultiple line secrets or configuration do not work in Aspire per default. An example of this is using a PEM file for certificates. This posts shows how the multiple line configuration parameters ca… 022
Andrew Lock "Sock" @andrewlock.bsky.social · 31/08/2026I mean, as depressing as it is, that pretty much sums it up 100
Reposted by Andrew Lock "Sock"Particular Software @particular.net · 31/08/2026Better know your HTTP headers! If you've seen Sec-Fetch-Dest and friends but never really knew what they were for, you're in luck!andrewlock.netUnderstanding the Fetch Metadata HTTP headers: Sec-Fetch-Site and friendsIn this post I describe the Fetch Metadata HTTP headers like Sec-Fetch-Site and Sec-Fetch-Mode which give information to a server about the context of a request 001
Andrew Lock "Sock" @andrewlock.bsky.social · 25/08/2026Blogged: Finding the total number of processors on a machine with .NET andrewlock.net/finding-the-... In this post I show how to find the total number of logical CPUs on a host (not just those available to a process); something that isn't exposed in modern .NET #dotnet 021
Andrew Lock "Sock" @andrewlock.bsky.social · 13/08/2026Thanks, but we upload about 8 packages at once, and it's just 2 that are stuck, the biggest ones, so I'm sure it's just essentially a regression or something 020
Andrew Lock "Sock" @andrewlock.bsky.social · 13/08/20263 days later and @nuget.org _still_ hasn't validated our packages 🙄 Can someone please go and kick the server? 100
Andrew Lock "Sock" @andrewlock.bsky.social · 11/08/2026_sigh_ and now there's _two_ packages stuck validating 🙄😅 000
Andrew Lock "Sock" @andrewlock.bsky.social · 11/08/2026Thanks for the heads up, I guess we'll give that a try 👍 100
Andrew Lock "Sock" @andrewlock.bsky.social · 11/08/2026@nuget.org we have packages stuck in "validating" for over 24 hours - what's going on? No response from customer support, and no problems at status.nuget.org, so what's going on? 🤷status.nuget.org NuGet | Status 231
Reposted by Andrew Lock "Sock"olegkarasik.bsky.social @olegkarasik.bsky.social · 04/08/2026Just published a new issue of .NET R&D Digest! Thx to @rasbt.bsky.social, @maartenballiauw.be, @andrewlock.bsky.social, @kevingosse.net, @meziantou.net, @simonwillison.net & other authors for their g8 content! olegkarasik.wordpress.com/2026/08/04/n... #dotnetolegkarasik.wordpress.com.NET R&D Digest (July, 2026)This issue includes bits of AI, Security, MS SQL, Performance, C#, HTTP and of course .NET and .NET Internals. 023
Reposted by Andrew Lock "Sock"ASP.NET Core News @aspnetcore.news · 04/08/2026Understanding the Fetch Metadata HTTP headers: Sec-Fetch-Site and friends by @andrewlock.bsky.social andrewlock.net/understandin... #aspnetcore 011
Andrew Lock "Sock" @andrewlock.bsky.social · 04/08/2026Blogged: Automatic CSRF protection based on Fetch Metadata headers - Exploring the .NET 11 preview andrewlock.net/exploring-th... In this post I describe the new Cross-Site Request Forgery protection added to ASP.NET Core that uses Fetch Metadata headers instead of tokens #aspnetcore #securityandrewlock.netAutomatic CSRF protection based on Fetch Metadata headers: Exploring the .NET 11 preview - Part 6In this post I describe the new Cross-Site Request Forgery protection added to ASP.NET Core that uses Fetch Metadata HTTP headers instead of antiforgery tokens 051
Andrew Lock "Sock" @andrewlock.bsky.social · 29/07/2026Blogged: Understanding the Fetch Metadata HTTP headers: Sec-Fetch-Site and friends andrewlock.net/understandin... In this post I describe the Fetch Metadata HTTP headers like Sec-Fetch-Site and Sec-Fetch-Mode which give information to a server about the context of a request #Security #aspnetcoreandrewlock.netUnderstanding the Fetch Metadata HTTP headers: Sec-Fetch-Site and friendsIn this post I describe the Fetch Metadata HTTP headers like Sec-Fetch-Site and Sec-Fetch-Mode which give information to a server about the context of a request 020
Andrew Lock "Sock" @andrewlock.bsky.social · 10/07/2026Thanks! I proof read those in a bit of a rush😅 010
Andrew Lock "Sock" @andrewlock.bsky.social · 07/07/2026Blogged: Improvements to reading Process outputs - Exploring the .NET 11 preview - Part 5 andrewlock.net/exploring-th... In this post I show some of the improvements to the Process API in .NET 11 for running processes and reading their outputs without risk of deadlock #dotnet 193
Reposted by Andrew Lock "Sock"Kevin Gosse @kevingosse.net · 01/07/2026I published part 10 of my "Writing a .NET Garbage Collector in C#" series: minidump.net/writing-a-ne... This time, I implemented support for finalization, which reveals some intricacies of the .NET runtime.minidump.netWriting a .NET Garbage Collector in C# - Part 10: FinalizersUsing NativeAOT to write a .NET GC in C#. In this part, we add support for finalization. 076
Reposted by Andrew Lock "Sock"olegkarasik.bsky.social @olegkarasik.bsky.social · 02/07/2026New issue of .NET R&D Digest is here! Thx to @lemire.bsky.social, @maartenballiauw.be, @chrisnas.bsky.social, @meziantou.net, @andrewlock.bsky.social & other authors for their g8 content! olegkarasik.wordpress.com/2026/07/02/n... #dotnetolegkarasik.wordpress.com.NET R&D Digest (June, 2026)This issue includes bits of AI, software development, C++, C#, diagnostics, architecture and of course .NET and .NET Internals. 064
Reposted by Andrew Lock "Sock"Immo Landwerth @terrajobst.net · 03/07/2026And with collection expressions / spread operators it works very nicely: 021
Reposted by Andrew Lock "Sock"Immo Landwerth @terrajobst.net · 03/07/2026IMHO: don't use IEnumerable<TheoryData<...>>. Just return TheoryData<...> directly. It makes the code much less verbose. Thanks @andrewlock.bsky.social! andrewlock.net/creating-str... 281
Andrew Lock "Sock" @andrewlock.bsky.social · 30/06/2026Blogged: Closed class hierarchies - Exploring the .NET 11 preview - Part 4 andrewlock.net/exploring-th... In this post I describe what a closed closed hierarchy is, how to create one, and discuss why you might want one #dotnet #csharpandrewlock.netClosed class hierarchies: Exploring the .NET 11 preview - Part 4In this post I describe what a close closed hierarchy is, how to create one, and discuss why you might want to 020
Reposted by Andrew Lock "Sock"Christophe Nasarre @chrisnas.bsky.social · 25/06/2026Let's dig into the new cDAC way to access .NET runtime internals :^) chrisnas.github.io/posts/2026-0... Happy reading!chrisnas.github.ioReading CLR internals the cDAC way: contracts instead of the DACWhy .NET is replacing the DAC with the cDAC data contracts, how they work locally / over a process / from a dump, and how to map the GitHub .md contracts to C# - with a from-scratch !eeheap as a worki... 0106
Andrew Lock "Sock" @andrewlock.bsky.social · 23/06/2026Blogged: Exploring the .NET 11 preview - Part 3 - Avoiding ToString() allocations with StringBuilder.MoveChunks andrewlock.net/exploring-th... In this post I take a look at the new MoveChunks() API, explore how it works, what it's for, and how the new API provides opportunities for public APIsandrewlock.netAvoiding ToString() allocations with StringBuilder.MoveChunks: Exploring the .NET 11 preview - Part 3in this post I take a short look at the new MoveChunks API, explore how it works, what it's for, and how the new API provides opportunities for public APIs 0112
Reposted by Andrew Lock "Sock"Damien Bowden @damienbod.com · 15/06/2026Blogged: Software development and AI damienbod.com/2026/06/15/s... #ai #software #code #copilotdamienbod.comSoftware development and AIThis is a bit of rambling from me and what I believe is a good setup for developing software together with AI tools. I believe the AI tools are good, which will help good developers produce better … 061
Reposted by Andrew Lock "Sock"olegkarasik.bsky.social @olegkarasik.bsky.social · 05/06/2026One more issue of .NET R&D Digest is here! Thanks to @martinfowler.com, @kentbeck.com, @andrewlock.bsky.social, @b0rk.jvns.ca, and other great authors for the amazing content! olegkarasik.wordpress.com/2026/06/05/n... #dotnetolegkarasik.wordpress.com.NET R&D Digest (May, 2026)This issue includes bits of AI (too much AI), C#, software development, architecture, Windows, security, NTFS and of course .NET and .NET Internals. 193
Andrew Lock "Sock" @andrewlock.bsky.social · 19/05/2026Blogged: .NET finally gets union types🎉 - Exploring the .NET 11 preview - Part 2 andrewlock.net/exploring-th... In this post I discuss the support for union types released in .NET 11, how they're implemented, the choices made, and how to create your own union types #dotnetandrewlock.net.NET finally gets union types🎉: Exploring the .NET 11 preview - Part 2In this post I discuss the support for union types released in .NET 11, how they're implemented, the choices made, and how to create your own 0146
Reposted by Andrew Lock "Sock"Damien Bowden @damienbod.com · 18/05/2026Blogged: Aspire Azure SQL deployment bug damienbod.com/2026/05/18/a... #aspire #azure #dotnet #aspnetcore #sqldamienbod.comAspire Azure SQL deployment bugThis week, I was updating my Aspire applications after the latest release and I ran into a deployment bug for my test deployments. I could no longer deploy the database to Azure SQL. I got the foll… 032
Andrew Lock "Sock" @andrewlock.bsky.social · 12/05/2026Blogged: Running background tasks in Blazor with Web Workers - Exploring the .NET 11 preview - Part 1 andrewlock.net/exploring-th... In this post I discuss the new Web Worker template available in .NET 11 for running CPU intensive tasks without blocking the UI #dotnet #blazorandrewlock.netRunning background tasks in Blazor with Web Workers: Exploring the .NET 11 preview - Part 1In this post I discuss the new Web Worker template available in .NET 11 for running CPU intensive tasks without blocking the UI 073
Reposted by Andrew Lock "Sock"olegkarasik.bsky.social @olegkarasik.bsky.social · 04/05/2026New issue of .NET R&D Digest is here! Thanks to @lemire.bsky.social, @andrewlock.bsky.social, @martinfowler.com, @meziantou.net, @steplyakov.bsky.social and other authors for their g8 content! olegkarasik.wordpress.com/2026/05/04/n... #dotnetolegkarasik.wordpress.com.NET R&D Digest (April, 2026)This issue includes bits of computer science, AI (unfortunately a lot of AI), academic papers, software development, architecture, performance, scheduling, C#, C++, .NET and .NET Internals. 041
Reposted by Andrew Lock "Sock"Kevin Gosse @kevingosse.net · 28/04/2026Up until now, I've always used PowerPoint for my talks: WYSIWYG, can get something decent just by dragging a few elements around. However it quickly becomes a nightmare when dealing with animations or complex layouts. 311
Reposted by Andrew Lock "Sock"Tim but Spooky @timburga.com · 28/04/2026attention git users there are no excuses left for wip wip wip in your repo histories 371
Andrew Lock "Sock" @andrewlock.bsky.social · 28/04/2026Blogged: New features in Git 2.54: easier rebasing, hooks, and statistics andrewlock.net/new-features... In this post I show some of the new features in Git 2.54 including simple rebases with git history, config-based hooks, and stats with git repo structure #gitandrewlock.netNew features in Git 2.54: easier rebasing, hooks, and statisticsIn this post I show some of the new features in Git 2.54 including simple rebases with git history, config-based hooks, and stats with git repo structure 071
Andrew Lock "Sock" @andrewlock.bsky.social · 21/04/2026Blogged: Removing byte[] allocations in .NET Framework using ReadOnlySpan<T> andrewlock.net/removingbyte... In this post I describe how to remove static byte[] allocations, even on .NET Framework, by using Span<T> look at the associated IL, and discuss the potential risks #dotnetandrewlock.netRemoving byte[] allocations in .NET Framework using ReadOnlySpan<T>In this post I describe how to remove static byte[] allocations, even on .NET Framework, by using Span<T>, look at the associated IL, and discuss the risks 092
Reposted by Andrew Lock "Sock"Christophe Nasarre @chrisnas.bsky.social · 21/04/2026I'm moving from Medium to Github pages! chnasarre.medium.com/aa972d9ff6c6...chnasarre.medium.comI’m moving to chrisnas.github.ioFor easier access, I’ve decided to move my blog to github pages at https://chrisnas.github.io/. 181
Andrew Lock "Sock" @andrewlock.bsky.social · 14/04/2026Blogged: Running AI agents with customized templates using docker sandbox andrewlock.net/running-ai-a... In this post I describe how to create custom templates for Docker Sandboxes, so that your sandboxes start with additional tools immediately available (like .NET) #docker #dotnetandrewlock.netRunning AI agents with customized templates using docker sandboxIn this post I describe how to create custom templates for Docker Sandboxes, so that your sandboxes start with additional tools immediately available 052
Andrew Lock "Sock" @andrewlock.bsky.social · 07/04/2026Blogged: Running AI agents safely in a microVM using docker sandbox andrewlock.net/running-ai-a... In this post I show how to run AI coding agents safely while still using YOLO/dangerous mode using docker sandboxes and the sbx tool #ai #docker #sandbox #claudeandrewlock.netRunning AI agents safely in a microVM using docker sandboxIn this post I show how to run AI coding agents safely while still using YOLO/dangerous mode using docker sandboxes and the sbx tool 4102
Reposted by Andrew Lock "Sock"olegkarasik.bsky.social @olegkarasik.bsky.social · 03/04/2026New issue of .NET R&D Digest is here! Thx to @simonwillison.net, @birgitta410.bsky.social, @kief.com, @lemire.bsky.social, @kevingosse.net, @andrewlock.bsky.social, @meziantou.net, @stevesanderson.bsky.social & other authors for their g8 content! #dotnet olegkarasik.wordpress.com/2026/04/03/n...olegkarasik.wordpress.com.NET R&D Digest (March, 2026)This issue includes bits (or I would rather say bytes) of AI, bits of software development, operating systems, web, diagnostics, performance, C++, C#, and of course .NET and .NET Internals. 093