You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csharp/language-reference/compiler-options/errors-warnings.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,19 @@ helpviewer_keywords:
16
16
---
17
17
# C# Compiler Options to report errors and warnings
18
18
19
-
The following options control how the compiler reports errors and warnings. The new MSBuild syntax is shown in **Bold**. The older *csc.exe* syntax is shown in `code style`.
20
-
21
-
-**WarningLevel** / `-warn`: Set warning level.
22
-
-**AnalysisLevel**: Set optional warning level.
23
-
-**TreatWarningsAsErrors** / `-warnaserror`: Treat all warnings as errors
24
-
-**WarningsAsErrors** / `-warnaserror`: Treat one or more warnings as errors
25
-
-**WarningsNotAsErrors** / `-warnnotaserror`: Treat one or more warnings not as errors
26
-
-**NoWarn** / `-nowarn`: Set a list of disabled warnings.
27
-
-**CodeAnalysisRuleSet** / `-ruleset`: Specify a ruleset file that disables specific diagnostics.
28
-
-**ErrorLog** / `-errorlog`: Specify a file to log all compiler and analyzer diagnostics.
29
-
-**ReportAnalyzer** / `-reportanalyzer`: Report additional analyzer information, such as execution time.
19
+
The following options control how the compiler reports errors and warnings.
0 commit comments