dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.92k stars 786 forks source link

[Visual studio] Nullness - GUI in property pages for a project to turn nullness checking on/off #17424

Open T-Gro opened 3 months ago

T-Gro commented 3 months ago

Issue description

Nullable reference type checking is controlled via project settings in .fsproj file. This suggestion is to create an alternative control mechanism via project property pages setting in VS.

Choose one or more from the following categories of impact

Operating System

Windows (Default)

What .NET runtime/SDK kind are you seeing the issue on

.NET SDK (.NET Core, .NET 5+)

.NET Runtime/SDK version

No response

Reproducible code snippet and actual behavior

No response

Possible workarounds

No response

T-Gro commented 3 months ago

This is what VS offers for C#:

image

It maps to .csproj property, e.g.: <Nullable>annotations</Nullable>

The annotations value means that it loads the nullable types, propagates them etc., but never emits a warning. I guess it is similar to having checknulls+, but disabling all related warnings.