The first official preview of ASP.NET Core 2.1 was released yesterday. I’ve been playing around with the nightly builds for various parts of ASP.NET Core 2.1 for the last few months and finally I was able to move to the official preview 1 packages on NuGet rather than the MyGet feeds. I wanted to test […]
Category: ASP.NET Core
ASP.NET Core Anatomy – How does UseStartup work? Exploring how UseStartup results in your Startup methods being registered and executed.
I was recently explaining to someone the basics of the program flow for an ASP.NET Core application. One of the things included in the templates for ASP.NET Core and used very often is the UseStartup<T> extension method on the IWebHostBuilder. This gets called from our Program.cs when initialising the application. UseStartup allows us to set […]
ASP.NET Core Anatomy Index An index of posts which deep dive into the internals of ASP.NET Core
This post acts as an index of the various ASP.NET Core anatomy posts I have written. Each of these deeps dives into the ASP.NET Core code base to understand how the internals work. Part 1 – What happens when the AddMvcCore extension is called? Part 2 – What happens when the AddMvc extension is called? […]
ASP.NET Core Gotchas – No. 4 Value cannot be null. Parameter name: connectionString when running dotnet ef migrations add
I was upgrading a quite mature ASP.NET Core 1.0 project to ASP.NET Core 2.0 today and ran into an odd issue which took me a good half hour to track down. After working my way through the various breaking changes to things such as authorisation I was pretty much at the point where my project […]
HttpClientFactory in ASP.NET Core 2.1 (Part 2) Defining Named and Typed Clients
In my last post – An introduction to HttpClientFactory – I explained some of the reasons behind the creation of the feature. We looked at what problems it helps solve and then followed a very basic example showing how it can be used in a WebAPI application. In this post I want to dive into […]