Quantcast
Channel: Andrew Lock | .NET Escapades
Browsing all 756 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Running .NET Core global tools in non-sdk Docker images

.NET Core global tools are great for providing small pieces of functionality. Unfortunately, they have a few limitations which can occasionally cause issues when you run them. In this post I describe...

View Article


Image may be NSFW.
Clik here to view.

New in .NET Core 3.0: local tools: Exploring ASP.NET Core 3.0 - Part 7

This is the seventh post in the series: Exploring ASP.NET Core 3.0. Part 1 - Exploring the new project file, Program.cs, and the generic host Part 2 - Comparing Startup.cs between the ASP.NET Core 3.0...

View Article


Image may be NSFW.
Clik here to view.

Simplifying the Cake global tool bootstrapper scripts with .NET Core 3 local...

In this post I show how you can simplify your Cake global tool bootstrapper scripts by taking advantage of local tools, introduced in .NET Core 3.0. I described the new local tools feature (introduced...

View Article

Image may be NSFW.
Clik here to view.

Converting a .NET Standard 2.0 library to .NET Core 3.0: Upgrading to ASP.NET...

This is the first post in the series: Upgrading to ASP.NET Core 3.0. Part 1 - Converting a .NET Standard 2.0 library to .NET Core 3.0 (this post) Part 2 - IHostingEnvironment vs IHostEnvironment -...

View Article

Image may be NSFW.
Clik here to view.

IHostingEnvironment vs IHostEnvironment - obsolete types in .NET Core 3.0:...

This is the second post in the series: Upgrading to ASP.NET Core 3.0. Part 1 - Converting a .NET Standard 2.0 library to .NET Core 3.0 Part 2 - IHostingEnvironment vs IHostEnvironment - obsolete types...

View Article


Image may be NSFW.
Clik here to view.

Avoiding Startup service injection in ASP.NET Core 3: Upgrading to ASP.NET...

This is the third post in the series: Upgrading to ASP.NET Core 3.0. Part 1 - Converting a .NET Standard 2.0 library to .NET Core 3.0 Part 2 - IHostingEnvironment vs IHostEnvironment - obsolete types...

View Article

Image may be NSFW.
Clik here to view.

Converting a terminal middleware to endpoint routing in ASP.NET Core 3.0:...

This is the fourth post in the series: Upgrading to ASP.NET Core 3.0. Part 1 - Converting a .NET Standard 2.0 library to .NET Core 3.0 Part 2 - IHostingEnvironment vs IHostEnvironment - obsolete types...

View Article

Image may be NSFW.
Clik here to view.

Converting integration tests to .NET Core 3.0: Upgrading to ASP.NET Core 3.0...

This is the fifth post in the series: Upgrading to ASP.NET Core 3.0. Part 1 - Converting a .NET Standard 2.0 library to .NET Core 3.0 Part 2 - IHostingEnvironment vs IHostEnvironment - obsolete types...

View Article


Image may be NSFW.
Clik here to view.

.NET Core, Docker, and Cultures - Solving a culture issue porting a .NET Core...

This post is part of the third annual C# Advent. Check out the home page for up to 50 C# blog posts in December 2019! In this post I describe an issue I found when porting an ASP.NET Windows...

View Article


Image may be NSFW.
Clik here to view.

A Quantum Random Number Generator for .NET: The quantum measurement problem...

I've been listening to a lot of Sean Carroll's Mindscape podcast recently, and in a recent episode with Rob Reid he discussed the Everettian or "many-worlds" approach to explaining the measurement...

View Article

Image may be NSFW.
Clik here to view.

Reducing log verbosity with Serilog RequestLogging: Using Serilog.AspNetCore...

This is the first post in the series: Using Serilog.AspNetCore in ASP.NET Core 3.0. Part 1 - Reducing log verbosity with Serilog RequestLogging (this post) Part 2 - Logging the selected Endpoint Name...

View Article

Image may be NSFW.
Clik here to view.

Logging the selected Endpoint Name with Serilog: Using Serilog.AspNetCore in...

This is the second post in the series: Using Serilog.AspNetCore in ASP.NET Core 3.0. Part 1 - Reducing log verbosity with Serilog RequestLogging Part 2 - Logging the selected Endpoint Name with...

View Article

Image may be NSFW.
Clik here to view.

Logging MVC properties with Serilog.AspNetCore: Using Serilog.AspNetCore in...

This is the third post in the series: Using Serilog.AspNetCore in ASP.NET Core 3.0. Part 1 - Reducing log verbosity with Serilog RequestLogging Part 2 - Logging the selected Endpoint Name with Serilog...

View Article


Image may be NSFW.
Clik here to view.

Excluding health check endpoints from Serilog request logging: Using...

This is the fourth post in the series: Using Serilog.AspNetCore in ASP.NET Core 3.0. Part 1 - Reducing log verbosity with Serilog RequestLogging Part 2 - Logging the selected Endpoint Name with...

View Article

Image may be NSFW.
Clik here to view.

Inserting middleware between UseRouting() and UseEndpoints() as a library...

This post is in response to a question from a reader about how library authors can ensure consumers of their library insert the library's middleware at the right point in the app's middleware...

View Article


Image may be NSFW.
Clik here to view.

Inserting middleware between UseRouting() and UseEndpoints() as a library...

This post follows on from my previous post - if you haven't already, I strongly recommend reading that one first. These posts are in response to a question from a reader about how library authors can...

View Article

Image may be NSFW.
Clik here to view.

Creating an endpoint from multiple middleware in ASP.NET Core 3.x

In a recent post I discussed the changes to routing that come in ASP.NET Core 3.0, and how you can convert a "terminal" middleware to the new "endpoint" design. One question I've received is whether...

View Article


Image may be NSFW.
Clik here to view.

Exploring the new rollForward and allowPrerelease settings in global.json:...

This is the eighth post in the series: Exploring ASP.NET Core 3.0. Part 1 - Exploring the new project file, Program.cs, and the generic host Part 2 - Comparing Startup.cs between the ASP.NET Core 3.0...

View Article

Image may be NSFW.
Clik here to view.

When ASP.NET Core can't find your controller: debugging application parts

In this post I describe application parts and how ASP.NET Core uses them to find the controllers in your app. I then show how you can retrieve the list at runtime for debugging purposes. Debugging a...

View Article

Image may be NSFW.
Clik here to view.

Creating a custom ErrorHandlerMiddleware function

In this post I show how to customise the ExceptionHandlerMiddleware to create custom responses when an error occurs in your middleware pipeline, instead of providing a path to "re-execute" the...

View Article
Browsing all 756 articles
Browse latest View live