Skip to content

Incorrect mention of TreatWarningsAsErrors instead of WarningsAsErrors #39119

Closed
@ScrubN

Description

@ScrubN

Type of issue

Typo

Description

In the first paragraph of the section TreatWarningsAsErrors, the first sentence mentions how to set all warnings as errors followed by a brief sentence about how to set only some warnings as errors, however the second sentence mentions the wrong property.

It should say You can also use the **WarningsAsErrors** option to set only some warnings as errors instead of You can also use the **TreatWarningsAsErrors** to set only some warnings as errors

[Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/errors-warnings?source=recommendations

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/compiler-options/errors-warnings.md

Document Version Independent Id

e57ac82b-307e-163b-8172-52644b3a6baa

Article author

@BillWagner

Metadata

  • ID: 26ef35c2-6df4-26f8-32b2-9b50eb76c037
  • Service: dotnet-csharp
  • Sub-service: lang-reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnet-csharp/svcerrors-warnings/subsvchelp wantedGood for community contributors to help [up-for-grabs]in-prThis issue will be closed (fixed) by an active pull request.lang-reference/subsvcokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions