@David Stobbe , Welcome to Microsoft Q&A, based on my test, I reproduced your problem.
After checking, I find that Microsoft doc Example has explained it, the specific description as the following:
.NET 5 (including .NET Core) or a later version: There's no output, because this implementation of .NET doesn't call finalizers when the application terminates.
Hope this could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.