Andrew Lock "Sock"'s Avatar

Andrew Lock "Sock"

@andrewlock.bsky.social

Microsoft MVP and blogger, focused on ASP.​NET Core. Author of ASP.​NET Core in Action (https://mng.bz/5mRz) Blog: https://andrewlock.net Mastadon: @andrewlock@hachyderm.io Twitter: @andrewlocknet

2,284 Followers  |  330 Following  |  850 Posts  |  Joined: 12.10.2023  |  2.1828

Latest posts by andrewlock.bsky.social on Bluesky

A screenshot of "dotnet make" in action

A screenshot of "dotnet make" in action

A while back, I created "dotnet make" which will invoke your favourite build tool (cake, fake, make, nuke, csproj, fsproj, proj, sln) by convention, regardless of the current working directory in the repository.

github.com/patriksvenss...

05.08.2025 23:25 — 👍 25    🔁 10    💬 2    📌 0
Preview
Passkey support for ASP.NET Core identity: Exploring the .NET 10 preview - Part 6 In this post I look at the passkey support added to ASP.NET Core Identity and the Blazor Web App template, explore how it works, and look at the implementation

Blogged: Passkey support for ASP.NET Core identity -
Exploring the .NET 10 preview - Part 6

andrewlock.net/exploring-do...

In this post I look at the passkey support added to ASP.NET Core Identity and the Web App template, explore how it works, and look at the implementation

#dotnet #aspnetcore

05.08.2025 17:36 — 👍 11    🔁 2    💬 1    📌 1
Preview
Issuer and verify credentials using the Swiss Digital identity public beta, ASP.NET Core and .NET Aspire The post shows how to issue and verify identities (verifiable credentials) using the Swiss Digital identity and trust infrastructure, (swiyu), ASP.NET Core and .NET Aspire. The swiyu infrastructure…

Blogged: Issuer and verify credentials using the Swiss Digital identity public beta, ASP.NET Core and .NET Aspire

damienbod.com/2025/08/04/i...

#aspire #aspnetcore #dotnet #swiyu #e-ID #eid #identity #iam #openid #sd-jwt-vc #vc #did #ssi #OID4VCI #OID4VP

04.08.2025 05:34 — 👍 6    🔁 4    💬 0    📌 0

I don't think it can be as clear cut as that for us (not everyone uses rider, sometimes linq is fine) so it's really just a prompt to keep an eye out in review

04.08.2025 07:15 — 👍 0    🔁 0    💬 0    📌 0

Sometimes. The System.Linq case is actually a good example, as we generally don't want to use it, especially on netfx (as there's normally an uglier but more performant version), so it draws attention of/when it's added

03.08.2025 14:36 — 👍 0    🔁 0    💬 1    📌 0
Preview
Fighting through Setting up Microsoft Trusted Signing It's that time of year again to update my CodeSigning certificate, only to find out that the rules have changed since I last did this. Certs now require either a physical hardware key or a online serv...

@rickstrahl.west-wind.com wrote about this the other day, might save you some time? weblog.west-wind.com/posts/2025/J...

02.08.2025 13:01 — 👍 1    🔁 0    💬 1    📌 0

Good to know, I didn't even look! Cheers 👍

30.07.2025 21:58 — 👍 1    🔁 0    💬 0    📌 0
Preview
a group of cartoon characters holding a sign that says won 't somebody please think of the children ALT: a group of cartoon characters holding a sign that says won 't somebody please think of the children
30.07.2025 17:23 — 👍 2    🔁 0    💬 1    📌 0

Well, this is insane. I can't access DMs on here unless I "validate my age" with some random company. Who I'm sure won't be a juicy target for a security breach. Or you know, fire up one of dozens of VPNs 🙄

30.07.2025 17:22 — 👍 1    🔁 0    💬 2    📌 0
Preview
Running one-off .NET tools with dnx: Exploring the .NET 10 preview - Part 5 In this post I show the new dnx command for running .NET tools without installing them and look at exactly how it works.

Blogged: Running one-off .NET tools with dnx - Exploring the .NET 10 preview - Part 5

andrewlock.net/exploring-do...

In this post I show the new dnx command for running .NET tools without installing them and look at how it works under the hood

#dotnet

29.07.2025 18:15 — 👍 6    🔁 3    💬 0    📌 0
Preview
@devlead - Mattias Karlsson's Blog - Migrating to Cake.Sdk Taking your build.cake to cake.cs

Just blogged: Migrating to Cake SDK — sharing lessons learned, gotchas, and how to modernize your Cake builds 🍰🔧

www.devlead.se/posts/2025/2...

#DotNet #cakebuild #devops

28.07.2025 20:46 — 👍 11    🔁 8    💬 1    📌 0
Video thumbnail

To help reduce the number of UI freezes caused by Resharper, I built an internal tool to measure UI responsiveness.
Here, you can see the improvement between the current 2025.1 version (on the left) and the upcoming 2025.2 version (on the right) with out-of-process enabled.

28.07.2025 12:58 — 👍 12    🔁 4    💬 2    📌 0
Post image

New OSS project: Basic setup to issuer and verify swiyu credentials using the swiyu public beta, ASP.NET Core and Aspire.

github.com/swiss-ssi-gr...

#aspire #aspnetcore #dotnet #swiyu #e-ID #eid #identity #iam #openid #sd-jwt-vc #vc #did #ssi

27.07.2025 10:12 — 👍 3    🔁 2    💬 1    📌 0
Post image

As I work on Resharper performance, I learn about limitations of .NET (at least, .NET Framework) that I wasn't aware of. Here, I shaved 1 second of CPU time on startup by... removing a call to Array.Empty<T>.

23.07.2025 10:30 — 👍 34    🔁 4    💬 2    📌 0

Yep exactly, I just focused on the attributes in this post 🙂

22.07.2025 20:10 — 👍 1    🔁 0    💬 1    📌 0
Preview
Solving the source generator 'marker attribute' problem in .NET 10: Exploring the .NET 10 preview - Part 4 In this post I discuss a new source generator API, AddEmbeddedAttributeDefinition(), added in .NET 10, which makes it easier to embed generated attributes

Blogged: Solving the source generator 'marker attribute' problem in .NET 10 - Exploring the .NET 10 preview - Part 4

andrewlock.net/exploring-do...

In this post I discuss a new source generator API AddEmbeddedAttributeDefinition() that makes it easier to embed generated attributes

#dotnet #csharp

22.07.2025 16:14 — 👍 3    🔁 0    💬 1    📌 0

Thanks. Yeah, I mean, it looks similar, thought not quite the same to me. In my case I'm literally not referencing the package myself so I can't even add the conditions AFAICT. At least the linked PRs will address more of the issues.

20.07.2025 13:37 — 👍 0    🔁 0    💬 0    📌 0

Yeah, sure, I could drop support for that, but that should be a decision based on my willingness to support it. Not NuGet repeatedly badgering me enough that I get bored, relent, and delete support it out of frustration. Grmbl.

19.07.2025 13:12 — 👍 2    🔁 0    💬 0    📌 0

Specifically, it's the netcoreapp2.1 TFM. And yes, that's well out of support. But this is tests for a source generator, which basically supports any TFM, so I want to test the scenarios it could be running in.

19.07.2025 13:12 — 👍 1    🔁 0    💬 1    📌 0

In this case, the problem is testing against a bunch of TFMs: github.com/andrewlock/N...

warning NU1510: PackageReference Microsoft.NETCore.App will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary

19.07.2025 13:12 — 👍 0    🔁 0    💬 1    📌 0

Urgh, another .NET SDK release, another NuGet audit warning that shouts at me for no good reason 🙄 These audit warning always seem actively hostile to me trying to maintain strong back compat, both in my day job and OSS. Means I just end up turning them all off...

19.07.2025 13:12 — 👍 3    🔁 0    💬 2    📌 0
Preview
NuGet.org Package Deletion – Learnings & Prevention · NuGet Home · Discussion #14429 Between July 1st and July 10th, an internal error led to the unintended deletion of over 300 package versions from NuGet.org. This was not due to a security breach or external attack, but a result ...

NuGet Package Deletion – Learnings & Prevention #dotnet #nuget

github.com/NuGet/Home/d...

18.07.2025 20:23 — 👍 9    🔁 9    💬 0    📌 0

It seems like a manifestation of the fallacy that "just use a pool" is always good for performance... Handling eviction and scaling of that pool is now a whole new set of challenges 😅

15.07.2025 21:08 — 👍 0    🔁 0    💬 0    📌 0
Preview
O11ycast | Ep. #84, Maddy Montaquila on .NET Aspire | Heavybit Maddy Montaquila unpacks the

The o11ycast I did with @maddymontaquila.net is up. Expect some profanity and (weird for me) some praise about Aspire :D

We talked about the massive positive impact that Aspire is having on the .NET community accepting OpenTelemetry as the standard.

www.heavybit.com/library/podc...

15.07.2025 19:19 — 👍 11    🔁 4    💬 1    📌 2
Preview
C# 14 extension members; AKA extension everything: Exploring the .NET 10 preview - Part 3 In this post I look at the C#14 extension members feature. I show how to convert extension methods to the new syntax and how to add new types of extension.

Blogged: C# 14 extension members; AKA extension everything - Exploring the .NET 10 preview

andrewlock.net/exploring-do...

In this post I look at the C#14 extension members feature. I show how to convert extension methods to the new syntax and how to add new types of extension

#dotnet #csharp

15.07.2025 15:33 — 👍 3    🔁 1    💬 0    📌 0
Preview
Behind the scenes of dotnet run app.cs: Exploring the .NET 10 preview - Part 2 In this post I looks at how the new single-file .NET run experience is implemented inside the .NET SDK, focusing on how the virtual-project file is built

Behind the scenes of dotnet run app.cs by @andrewlock.bsky.social
andrewlock.net/exploring-do...

14.07.2025 13:58 — 👍 0    🔁 1    💬 0    📌 0
Preview
Rendering Blazor components to a string: Exploring the .NET 8 preview - Part 9 In this post I describe how to render Blazor components to a string, how to use HtmlRenderer in ASP.NET Core, and show what does and doesn't work

And thanks to @andrewlock.bsky.social for his post on getting HtmlRenderer to work. No way would I have figured that out on my own.

andrewlock.net/exploring-th...

14.07.2025 00:29 — 👍 4    🔁 1    💬 0    📌 0
Preview
Mdazor, Blazor Components in Markdown A Markdig extension that lets you embed interactive Blazor components directly in Markdown documents.

I was redoing my blog, yet again, so I threw together a blog post to test it out talking about the Mdazor project I was working on. It's kinda like MDX but with Markdig and Blazor.

thirty25.blog/blog/2025/07...

14.07.2025 00:28 — 👍 1    🔁 2    💬 1    📌 0
Video thumbnail

Sneak peak of the new parameter filling experience in the next version of .NET Aspire. Fully code driven and custom to your application.

#dotnet #aspire

12.07.2025 19:08 — 👍 27    🔁 3    💬 1    📌 0
Preview
Critter Stack Futures for the rest of 2025 It’s the halfway point of 2025 some how, and we’ve now gotten past the bit Marten 8.0 and Wolverine 4.0 releases. Right before I go on vacation next week, I thought it would be a good t…

Critter Stack Futures for the rest of 2025 jeremydmiller.com/2025/07/11/c...

RT's and any feedback would be deeply appreciated!

11.07.2025 22:57 — 👍 2    🔁 4    💬 0    📌 0

@andrewlock is following 19 prominent accounts