Skip to content

TreatWarningsAsErrors

Andrey Lipatkin edited this page Feb 8, 2015 · 2 revisions

What this rule is about?

TODO

Why should I enable this rule?

TODO

How to enable/configure this rule

<Rules>
...
<TreatWarningsAsErrors enabled="true">
  <AllWarnings />
  <!--You may also define specific warnings-->
  <!--<Warning>0123</Warning>-->
  <!--<Warning>0124</Warning>-->
  <Exception>
    <Project>ProjectToExcludeFromCheck.csproj</Project>
  </Exception>
  <Exception>
    <Project>ProjectIsAllowedNotToTreatSomeWarningsAsErrors.csproj</Project>
    <Warning>0125</Warning>
  </Exception>
</TreatWarningsAsErrors>
...
</Rules>