ASP.NET Core
ASP.Net Core. The go forward platform for creating the next generation of Web Apps.
-
Dot Net 5 is Here… Check it out.
Wow… some most excellent videos on what is what in .Net 5! Check it out on [visual-link-preview encoded=”eyJ0eXBlIjoiZXh0ZXJuYWwiLCJwb3N0IjowLCJwb3N0X2xhYmVsIjoiIiwidXJsIjoiaHR0cHM6Ly93d3cuZG90bmV0Y29uZi5uZXQvIiwiaW1hZ2VfaWQiOjAsImltYWdlX3VybCI6IiIsInRpdGxlIjoiLk5FVCBDb25mIDIwMjAiLCJzdW1tYXJ5IjoiSm9pbiB0aGUgLk5FVCBDb25mIDIwMjAgZnJlZSB2aXJ0dWFsIGV2ZW50IE5vdmVtYmVyIDEwLTEyIHRvIGxlYXJuIGFib3V0IHRoZSBuZXdlc3QgZGV2ZWxvcG1lbnRzIGFjcm9zcyB0aGUgLk5FVCBwbGF0Zm9ybSwgb3BlbiBzb3VyY2UsIGFuZCBkZXYgdG9vbHMuIE1hcmsgeW91ciBjYWxlbmRhciEiLCJ0ZW1wbGF0ZSI6InVzZV9kZWZhdWx0X2Zyb21fc2V0dGluZ3MifQ==”] You can also find these on You Tube… search on .Net 5. The Conf 2020 Days 1-3 will be there… ~ScottGeek.
-
The Server Side Blazor and SignalR Timeout
So in my Blazor travels I ran across one (or another) annoying thing. In this one we will talk about that Server -Timeout? Disconnect? Retry? Not really sure which one it is. This affects Blazor Server Side where SinalR is being used between the browser and server side code. I came across some Javescript that can go into the _Host.cshtml file. <script> // Wait until a 'reload' button appears new MutationObserver((mutations, observer) => { if (document.querySelector('#components-reconnect-modal h5 a')) { // Now every 10 seconds, see if the server appears to be back, and if so, reload async function attemptReload() { await fetch(''); // Check the server really is back…
-
ASP .Net Core Razor SPA vs. MVC Taghelpers Navigation
As I mess about with deciding- do I want to do Razor SPA pages or do a full on ASP.Core MVC pages for my latest Web App? I noticed something when- Yes I put both in a solution- it comes to the ASP tag helper for navigation links… So here’s the thing. For a regular ASP.Core MVC we see tag helper navigations look like this: <a class="nav-link" asp-controller="Home" asp-action="Index">Home</span></a> Simple enough… “asp-controller” has the simple controller name, and “asp-action” the action within the controller… no problem Now consider Razor SPA or just simple razor pages: <a class="nav-link text-dark btn btn-outline-info" asp-page="/Index" data-toggle="tooltip" data-placement="top" title="Always Takes you back Home">Home</a> Here…
-
Using Kestrel for ASP Core Apps
As I was looking about with some of the Core 2.2 notes, I came across some interesting notes on how to tweak about with Kestrel settings…. I’m not sure I like putting Kestrel options up the in the Main Program builder. I tend to prefer these to collect in the startup class, but I get point of why Kestrel needs to be handled close to the Builder (it is after all the html service handling web calls). Shall we begin… So up in program.cs we do our normal Web Host Builder: public class Program { public static void Main(string[] args) { var host = CreateWebHostBuilder(args).Build(); MigrateDatabase(host); host.Run(); //CreateWebHostBuilder(args).Build().Run(); } private…
-
EF Migration tasks in the Program.cs – The good and the Ugly
Program.cs of any core project (especially ASP.Net Core) is our first starting point to get some necessary work out of the wrong. In this case EF DB Migrations. You know that EF thing where you keep your attached DB tables in sync with your data models? (or in some cases… mess up your existing database). Life in program.cs normally starts here: public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>(); } But let’s consider this: public class Program { public static async Task Main(string[] args) { IWebHost webHost = CreateWebHostBuilder(args).Build(); // Create a new scope using (var scope…
-
App Registration Link
This seems to want to move me off to Azure… But for now the link still works… https://apps.dev.microsoft.com
-
ASP .NET Core – the new stuff
The latest read concerning ASP.Net Core 2.1
-
ASP.Net Core Identity and Bootstrap 4
UPDATING ASP.NET CORE IDENTITY TO USE BOOTSTRAP 4 I still need to read this: The Article How to Scaffold Identity UI in ASP.NET Core 2.1: Scaffold Article
-
Article: Looks like .Net Core 2.1 preview 2 is here.
I’ve not even finished looking at the 1st preview – with a read though. Seems there’s come controversy starting with how previews roll form version to version. It seems a bit pointless to me. I understand the “breaking” changes, and I have no issue with the change in policy. Read the article. Announcing .NET Core 2.1 Preview 2
-
GitHub: Develop ASP.NET Core Applications in a Container
Interesting and useful GitHub repo for getting started with “Containerized” Core development. Develop ASP.NET Core Applications in a Container



