🦜 Andrew Lock | .NET Escapades
@andrewlock.net@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Hi, my name is Andrew, or ‘Sock’ to most people. This blog is where I share my experiences as I journey into ASP.NET Core.
Your feed and you don't want it here? Just
e-mail the birb.
Working with tar files in .NET 8
https://andrewlock.net/working-with-tar-files-in-dotnet/
Published: September 3, 2024 09:00
In this post I show how to create, extract, and list tar files using the built-in tar support introduced in .NET 7, and discuss some of the limitations
Using Azure Storage Queue messages with Azure Functions and [QueueTrigger]
https://andrewlock.net/using-azure-storage-queues-with-azure-functions-and-queuetrigger/
Published: August 27, 2024 09:00
In this post I discuss using Azure Storage Queue as a message queue and how you can process Storage Queue messages using an Azure Functions app
Avoiding CDN supply-chain attacks with Subresource Integrity (SRI)
https://andrewlock.net/avoiding-cdn-supply-chain-attacks-with-subresource-integrity/
Published: August 20, 2024 09:00
In this post I discus the recent pollyfill.io supply-chain attack and describe how to protect against similar attacks using Subresource Integrity (SRI)
Combining multiple docker images into a multi-arch image
https://andrewlock.net/combining-multiple-docker-images-into-a-multi-arch-image/
Published: August 13, 2024 10:00
In this post I show two ways to combine multiple docker images into a single multi-arch image, discuss manifests and manifest lists, and why they matter
Simplifying [Theory] test data with Xunit.Combinatorial
https://andrewlock.net/simplifying-theory-test-data-with-xunit-combinatorial/
Published: August 6, 2024 09:00
In this post I show how you can simplify your xUnit [Theory] tests using the Xunit.Combinatorial package to auto-generate your test parameters
Creating source-only NuGet packages
https://andrewlock.net/creating-source-only-nuget-packages/
Published: July 30, 2024 09:00
In this post I show how you can create a NuGet package that contains source code (instead of dlls) which is then compiled into the target project
Disambiguating types with the same name with extern alias
https://andrewlock.net/disambiguating-types-with-the-same-name-with-extern-alias/
Published: July 16, 2024 09:00
In this post I describe how to solve Error CS0433, where you have two types with the exact same name and namespace coming from two different packages
Adding support for collection expressions to your own types: Behind the scenes of collection expressions - Part 5
https://andrewlock.net/behind-the-scenes-of-collection-expressions-part-5-adding-support-for-collection-expressions-to-your-own-types/
Published: July 9, 2024 09:00
In this final post of the series I show how to add support for collection expressions to your own types that don't support them automatically
Exploring the generated code: the spread element: Behind the scenes of collection expressions - Part 4
https://andrewlock.net/behind-the-scenes-of-collection-expressions-part-4-the-spread-element/
Published: July 2, 2024 09:00
In this post I show what the compiler generates when you use collection expressions with the spread element and how it depends on the collections used
Exploring the generated code: T[], Span, and Immutable collections: Behind the scenes of collection expressions - Part 3
https://andrewlock.net/behind-the-scenes-of-collection-expressions-part-3-arrays-span-of-t-and-immutable-collections/
Published: June 25, 2024 09:00
In this post I look at the code generated when you use collection expressions with T[], ReadOnlySpan, Span, and immutable collections