Skip to content

Fix incorrect WarningsAsErrors elements#1945

Merged
premun merged 3 commits intodotnet:mainfrom
GrabYourPitchforks:warn_as_err
Jun 19, 2023
Merged

Fix incorrect WarningsAsErrors elements#1945
premun merged 3 commits intodotnet:mainfrom
GrabYourPitchforks:warn_as_err

Conversation

@GrabYourPitchforks
Copy link
Copy Markdown
Member

@GrabYourPitchforks GrabYourPitchforks commented Jul 13, 2022

The project file element <WarningsAsErrors> is used to specify a list of warning codes that should be treated as errors. Passing true here has no meaning.

If you're instead trying to say "treat all warnings as errors," the correct syntax is:

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

#2678

ChadNedzlek
ChadNedzlek previously approved these changes Jul 13, 2022
Copy link
Copy Markdown
Member

@premun premun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @GrabYourPitchforks for noticing. Sorry for the long reaction time. Merging this now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants