To treat Nullable reference types (C# 8) warnings as errors to ensure they aren’t just ignored add line 7 below to your project file …

You might also be interested in...
Entity Framework Core 6 now scaffolds Nullable Reference Types (NRTs) usage into generated modelsIn Entity Framework Core 6 when using the database first approach Nullable Reference Types (NRTs) usage will now be scaffolded … Continue reading Entity Framework Core 6 now scaffolds Nullable...
Using aliases in C# to provide shorthand references to types or namespaces
In C# we can use aliases to provide shorthand references to types or namespaces. Aliases can be useful to tidy … Continue reading Using aliases in C# to provide shorthand...
In C# use the nameof() expression so your property, class and namespace references are type safe
In C# if you’re referencing property, class or namespace names in your code use the nameof() expression rather than strings … Continue reading In C# use the nameof() expression so...
Find All References for DB objects using a SQL Server Database Project
We use ‘Find All References’ a lot in Visual Studio to navigate around C#/VB code. By creating a SQL Server … Continue reading Find All References for DB objects using...
Declaring and setting multiple variables of the same type in the same statement in C#
Does anyone actually use this variation of declaring variables? I rarely see it. I think its possibly useful in instances … Continue reading Declaring and setting multiple variables of the...
One thought on “Treat Nullable references type warnings in C# 8+ as errors”