ASP.NET Core SQL Server and MySQL database logging with Serilog

ASP.NET Core SQL Server and MySQL database logging with Serilog How to use the ASP.NET Core's built-in ILogger logging API to write application logs to SQL Server, MySQL and/or MariaDB using Serilog logging provider

In this article we’ll see how to take advantage of Serilog, a neat open-source diagnostic logging library for .NET applications, to log our ASP.NET Core web application’s data to a …

Read More
The Current .NET SDK does not support targeting .NET Core 3.0 - Fix

Use Newtonsoft’s Json.NET instead of System.Text.Json in ASP.NET Core 3+ MVC projects How to replace the ASP.NET Core's native System.Text.Json APIs with the Newtonsoft.Json package library, also known as Json.NET

If you’re a ASP.NET developer and you’ve got some programming experience with ASP.NET Core 3+, you most likely already know that the ASP.NET Core development team introduced a brand new …

Read More
ASP.NET Core C# - How to lock an async method according to custom IDs

ASP.NET Core C# – How to lock an async method according to custom IDs Introducing LockProvider, a lightweight C# class that can perform sync and async locking for custom unique IDs using the SemaphoreSlim class

If you’re working with ASP.NET or ASP.NET Core C#  and you need to prevent (or restrict) the access and/or execution of certain methods from multiple threads, the best approach you …

Read More
Visual Studio 2017 - Lost Razor Intellisense and Syntax Highlight - How to Fix it