Skip to content

TreatWarningsAsErrors does not behave like /warnaserror #26199

@ohadschn

Description

@ohadschn

The page implies that these are two syntax forms to do the same thing, when in fact they differ in at least 2 regards:

  1. /warnaserror promotes ALL msbuild warnings to errors, whereas TreatWarningsAsErrors only affects compiler (csc) warnings
  2. /warnaserror generates output even in the face of errors, whereas TreatWarningsAsErrors does 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions