Skip to content

Commit 16e418d

Browse files
authored
Merge pull request #7585 from Forgind/patch-4
Add documentation on warnnotaserror switch
2 parents df2e9b3 + 53bf5bf commit 16e418d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/msbuild/msbuild-command-line-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ MSBuild.exe [Switches] [ProjectFile]
6767
|-version|-ver|Display version information only. The project isn't built.|
6868
|@`file`||Insert command-line switches from a text file. If you have multiple files, you specify them separately. For more information, see [Response files](../msbuild/msbuild-response-files.md).|
6969
|-warnAsError[:`code`[`;code2`]|-err[`:code`[`;code2`]|List of warning codes to treats as errors. Use a semicolon or a comma to separate multiple warning codes. To treat all warnings as errors, use the switch with no values. When a warning is treated as an error the target continues to execute as if it was a warning but the overall build fails.<br/><br/>Example: `-err:MSB4130`|
70+
|-warnNotAsError[:`code`[`;code2`]|-noerr[`:code`[`;code2`]|List of warning codes that should not be promoted to errors. Specifically, if the warnAsError switch is set to promote all warnings to errors, error codes specified with warnNotAsError are not promoted. This has no effect if warnAsError is not set to promote all warnings to errors. Use a semicolon or a comma to separate multiple warning codes. <br/><br/>Example: `-noerr:MSB4130`|
7071
|-warnAsMessage[:`code`[`;code2`]|-noWarn[:`code`[`;code2`]|List of warning codes to treats as low importance messages. Use a semicolon or a comma to separate multiple warning codes.<br/><br/>Example: `-noWarn:MSB3026`|
7172

7273
### Switches for loggers

0 commit comments

Comments
 (0)