fsharp
fsharp copied to clipboard
Visual Studio Project Properties shows C# warning levels in dropdown that don't apply to F# at all
The available options dropdown in VS 2022 and VS 2022 Preview lists them in relation to C#, and shows too many of them:
Repro steps
- Open any F# project
- Select menu Project → Properties
- 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.