Error CS0618: ‘ConsoleLogger’ is obsolete

This is a short note showing my fix to an error I encountered when migrating application from .NET Framework to the most recent (at the moment) .NET 6. I’m just pasting the rough code example of how this can be migrated, because: Custom console logger using old Microsoft.Extensions.Logging.Console 2.1.1 Equivalent custom console logger using newer Microsoft.Extensions.Logging.Console 6.0.0 … Read more

How to query Application Insights with C#

Update: the code example in this article uses an API that is now deprecated. It will only be useful if you are stuck using old NuGet library to query Application Insights. For new code, you should use instead. This article does not provide code example on how to use that newer API. Application Insights … Read more