-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
The page implies that these are two syntax forms to do the same thing, when in fact they differ in at least 2 regards:
/warnaserrorpromotes ALL msbuild warnings to errors, whereasTreatWarningsAsErrorsonly affects compiler (csc) warnings/warnaserrorgenerates output even in the face of errors, whereasTreatWarningsAsErrorsdoes not
More details: https://stackoverflow.com/questions/54771043/treatwarningsaserrors-vs-warnaserror
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 26ef35c2-6df4-26f8-32b2-9b50eb76c037
- Version Independent ID: e57ac82b-307e-163b-8172-52644b3a6baa
- Content: C# Compiler Options - errors and warnings
- Content Source: docs/csharp/language-reference/compiler-options/errors-warnings.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
BrunoJuchli