Skip to content

Treat specific warnings as errors #4388

Description

@bitbonk

Please add an option to the csproj file that allows me to define only specific warnings to be treated as errors.

My use case is that I would like to transform a larger code base to be nullable aware. Unfortunately this code base has a lot of other warnings when the solution is built. Those are uncritical and for now.

The solution should not compile as long as there are warning related to nullable types left.

I suspect that in the months after C# 8 hits the street, a lot code bases will be made nullable aware and a lot of people will be in a similar situation as I am now.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions