fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Visual Studio Project Properties shows C# warning levels in dropdown that don't apply to F# at all

Open abelbraaksma opened this issue 1 year ago • 0 comments

The available options dropdown in VS 2022 and VS 2022 Preview lists them in relation to C#, and shows too many of them: image

Repro steps

  1. Open any F# project
  2. Select menu ProjectProperties
  3. Scroll to Warnings section and select the dropdown shown above

Expected behavior

a. Only options 0 - 5, as these are the levels supported by F#. b. Descriptions matching the F# spec, not the C# spec (we don't throw C# 11 warnings, do we?)

Actual behavior

Showing 9 options, and showing descriptions not matching F#.

Known workarounds

None.

Related information

  • Visual Studio 2022 (with or w/o Preview)

PS: I've no problem issuing a PR for this, but I've no clue wherefrom this list is populated. This may very well be "external", as in: a bug of VS itself, which is closed source.

abelbraaksma avatar May 11 '24 09:05 abelbraaksma