Enums Mappings in OpenAPIOpenAPI does not directly support mapping enum keys to values, so if we had an C# enum:Nov 7, 2024Nov 7, 2024
Dependency Rules in Vertical-Sliced .NET projectsLet’s say I’m building a Library codebase, with domains: Books, Readers, and Borrows.Nov 4, 20241Nov 4, 20241
Previewing *.log filesWhen loggers in my apps pipe logs to a file, I make sure they’re usually in the format:Sep 3, 2024Sep 3, 2024
Organization-wide Cache InvalidationKey-Tracking — A cache-invalidation strategy for organizationsJun 8, 2024Jun 8, 2024
Verify IoC Registrations on Startup!Assert that your Registered DI Services, actually work!Jun 7, 2024Jun 7, 2024
Set ConfigurationManager ValuesHave you ever needed to set a value in ConfigurationManager.AppSettings e.g. ConfigurationManager.AppSettings.Add("foo", "value") ?Jun 6, 2024Jun 6, 2024
Use PackageReference in *.csproj filesI recently learnt that a *.csproj file that uses:May 17, 2024May 17, 2024
How I handle Exceptions in ASP.NETThis is my preferred method of handling errors in ASP.NET projects. Perhaps, you’ll find it useful, or maybe you’ll find holes in it and…Apr 29, 2024Apr 29, 2024
Stop using the old *.csproj SDK formatMigrate your legacy csproj files to the new SDK format in 8 stepsApr 22, 20242Apr 22, 20242
Using glob patterns in *.csproj filesMake your legacy *.csproj files cleaner and more reliableApr 21, 2024Apr 21, 2024