Category: .NET
-
Adding Razor cshtml view runtime re-compilation to a ASP.NET Core 5.0 app after creating it
by
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
by
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…
-
Using Google APIs and Auth in Xamarin Forms
by
in .NETI’m working on porting Net Writer from UWP to Android using Xamarin Forms. The Google authentication is a little bit tricky as it is constantly changing. Working off this amazing blog post by Timothé Larivière got me 90% of the way there but there are some updates to the process in 2020. Pre-requisites to register…
-
UWP and Xamarin Forms – How to display your app’s version number
by
Assume we want to automatically show the version number of your app in your UI, for example, the settings page or elsewhere. Your version number will normally be updated by your CI/CD system (updating Package.appxmanifest for UWP and AndroidManifest.xml for an Android Xamarin app). Create a property to bind to ViewModels and how they bind…
-
Adding an Admin Panel to a .NET Core web app with CoreAdmin
by
I’ve published version 1.0.0 of a new open source package and a corresponding nuget package – CoreAdmin. CoreAdmin adds a nice set of CRUD screens to your .NET Core web app in one line of code! Adding CoreAdmin to your app Given a typical Startup.cs file, you will have a ConfigureServices method. You need to…