skip to content
Relatively General .NET

What's the latest .NET roadmap?

by Ardalis

posted on: May 31, 2023

.NET Roadmap The latest version of .NET is 7. The current roadmap is for .NET 8. .NET 8 is scheduled to ship in November 2023 and will be an…Keep Reading →

Disabling HSTS for localhost on Chromium-based browsers

by Gérald Barré

posted on: May 29, 2023

TipA newer version of this post is available: Avoid HSTS issues on localhostHttp Strict Transport Security (HSTS) is a security mechanism that instructs the browser to automatically redirect http requests to https before sending a request to the server. When you are developing a web application, yo

Making authenticated cross-origin requests with ASP.NET Core Identity

by Andrew Lock

posted on: May 23, 2023

In this post I describe how to make authenticated cross-origin requests from the browser to an app using ASP.NET Core Identity.…

How to detect Globalization-Invariant mode in .NET

by Gérald Barré

posted on: May 22, 2023

Some libraries don't work when the application is running using Globalization-Invariant mode. This mode disabled all globalization features and force the use of the Invariant culture. This mode is useful for applications that don't need globalization features and want to reduce the application size

When and How to Use Blazor Components

by Ardalis

posted on: May 19, 2023

When and How to Use Blazor Components Blazor is a powerful framework for building web applications using C# instead of JavaScript. One of…Keep Reading →

Concurrent Hosted Service Start and Stop in .NET 8

by Steve Gordon

posted on: May 17, 2023

In this post, I will describe a new feature of the Microsoft.Extensions.Hosting library coming in .NET 8 (available since preview 4) affecting hosted services. Let’s first begin with a brief recap of hosted services. The hosting library for .NET, used in both the ASP.NET Core project template and the Worker Service template, provides the capability […]

Using Octokit.GraphQL to interact with the GitHub discussions API

by Andrew Lock

posted on: May 16, 2023

In this post I describe a .NET script/tool I created to migrate the comments on my blog posts from my legacy Disqus account to GitHub discussions…

Generate large files using PowerShell

by Gérald Barré

posted on: May 15, 2023

If you need to create a large file with random data for testing purposes, you can use PowerShell or PowerShell Core to quickly generate it.PowerShellcopy$path = Join-Path $pwd "test.txt" $size = 1GB $content = New-Object byte[] $size (New-Object System.Random).NextBytes($content) # Set-Content is

Avoid Proliferating DbContext or IQueryable in .NET Apps

by Ardalis

posted on: May 10, 2023

Most .NET apps use EF Core and a DbContext for data access, but maintainability can suffer when the use of a DbContext or an IQueryable…Keep Reading →

Migrating comments from Disqus to giscus

by Andrew Lock

posted on: May 09, 2023

In this post I describe a .NET script/tool I created to migrate the comments on my blog posts from my legacy Disqus account to GitHub discussions…