.NET Core

C# Use the Task Parallel library, including theParallel.For method, PLINQ, Tasks

In preperation for the Microsoft Programming in C# 70-483 exam, I've created a free study guide.

Microsoft C# Exam 70-483 Free Study Guide - Skip the Dumps & Pass the Programming Test

In preperation for the Microsoft Programming in C# 70-483 exam, I've created a free study guide.

How to Turn on Detailed Exceptions in CircuitOptions.DetailedErrors with Blazor

I ran into the following error while working with Blazor. Error: There was an exception invoking 'MethodName' on assembly 'AssemblyName'. For more details turn on detailed exceptions in 'CircuitOptions.DetailedErrors'. Here's the fix.

Clean Up & Sort Unused .NET Using Statements in Visual Studio

No need for an extension or ReSharper to sort and remove unnecessary using statements in .NET projects with Visual Studio. This is now built in, but you have to enable it.

Fixing Entity Framework Validation 30000 No Type Specified for the Decimal Column

Here's a quick fix for Entity Framework's Validation 30000 errors that show up on decimal columns.

NotSupportedException No IUserTwoFactorTokenProvider<TUser> named 'Default' is registered

While messing around with .NET Core 2 and Identity, I ran into this error.

How to Access the Hosting Environment in ConfigureServices

It can be useful to run different services in Development vs Production. The .NET Core templates do this within certain methods, such as the Configure method in the Startup class but there is no example of how to do it in the ConfigureServices method within the Startup Class.

Keep Your Startup Clean

Don't let your Startup.cs file turn into a mess. Use extension methods to keep it clean.