dotnet / dotnet/fsharp

Project system displays the C# warning levels mechanism for F# project

Open
#13,714 9 comments 2 reactions 1 assignee Claimed by @abelbraaksma View on GitHub
AI-thinks-windows-only Area-ProjectsAndBuild Area-VS Bug Impact-Medium Resolution-External Tracking-External
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/It-is-possible-to-select-Warn-level-7-fo/10067177)._

---
[severity:It bothers me. A fix would be nice]
I have an project for fsharp, it is Microsoft.NET.Sdk with targetframework net6.0-windows. When I right click the project in the solution explorer, and click properties, I can scroll down to the "Errors and warnings". The Warning level is default set to 3. From the dropdown menu, it gives the option to set it to "7 - Warnings from C# 11". When I select this option, and build the project, it wails with an error:
Severity Code Description Project File Line Suppression State
Error FS1050 Invalid warning level '7' ProjectName C:\Users\username\foldername\Documents\foldername\Products\projectname\src\solutionname\projectnamei\FSC 1 Active

---
### Original Comments

#### Feedback Bot on 6/10/2022, 10:26 AM:

(private comment, text removed)

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.