Skip to content

Remove pragma statements on obsolete warns #872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 16, 2020
Merged

Conversation

angularsen
Copy link
Owner

@angularsen angularsen commented Dec 16, 2020

  • Remove all #pragma statements related to obsolete warnings 612,618
  • Remove obsolete warning configuration per project
  • Add obsolete warning configuration to Directory.Build.props
    • Add <WarningsNotAsErrors>612,618</WarningsNotAsErrors>
    • Add <TreatWarningsAsErrors>true</TreatWarningsAsErrors>

Note: MSBuildTreatWarningsAsErrors was previously used, but this did not seem to honor WarningsNotAsErrors.
Replaced with TreatWarningsAsErrors.

Related to #864

Replace MSBuildTreatWarningsAsErrors with TreatWarningsAsErrors
Demote nullability errors to warnings in CodeGen until fixed.
@angularsen angularsen merged commit 4993a2a into master Dec 16, 2020
@angularsen angularsen deleted the remove-obsolete-pragma branch December 16, 2020 23:20
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.

1 participant