-
Converting .NET 6 Minimal API back to Startup.cs
I’ve had to convert a Minimal API app back to Startup.cs a few times now. Here are some reasons why you might want to do it: Incompatible NuGet packages For example as of time of writing Amazon.Lambda.AspNetCoreServer doesn’t work with Minimal APIs. If you didn’t know that Amazon.Lambda.AspNetCoreServer.Hosting was what you needed for Minimal APIs, you’d…
-
New C# 9.0 features – Record Types, Init Only Setters, Pattern Matching
I’ve recently added a quick series of videos on new C# 9 features available in .NET 5. You can find them below. Looking forward to using these!
-
Adding Razor cshtml view runtime re-compilation to a ASP.NET Core 5.0 app after creating it
I recently came across an interesting issue where after starting a new ASP.NET Core 5.0 .NET 5 project using the “ASP.NET Core Web App (Model-View-Controller)” template did not include the ability to update .cshtml Razor files without recompiling and restarting the whole app. There is a checkbox to “Enable Razor Runtime Compilation” during project setup…
-
Handling and intercepting Back button Navigation in Xamarin Forms Shell
I’ve recently ended up needing to ask if the user really wants to navigate away from a page in my Xamarin app, Net Writer. Essentially whilst a post is being edited I don’t want the user to accidentally lose their progress, necessitating the need to inject a “Are you sure?” or “Confirm exit” prompt when…
-
Improve Remote Desktop frame rate to 60fps by enabling AVC 4:4:4 encoding
I am a great fan of Remote Desktop and have been using it for over a decade. It’s built in and just works. One gripe of mine has always been the poor framerate which makes animations and transitions super janky by default. In RDP 10 it turns out this can be massively improved by enabling…