#nullable Warning
If the compiler is giving you warnings about nullable reference types, then you may need to enable nullables in the csproj file.
This can happen when you declare a public class property, like this:
public TaskConfigBase? ConfigBase { get; set; }
Since the above property is nullable (has the '?'), the compiler needs to know that it is allowed.
You can suppress the warning for the property, but you likely have it in other places.
As well, you can suppress it for the class's file, but likely have the same thing in others.
The best way to deal with it is to allow nullable across the project.
To do this, add this entry to the PropertyGroup of your csproj file, like this:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>
...
</Project>
No Comments