TreatWarningsAsErrors
Andrey Lipatkin edited this page Feb 8, 2015
·
2 revisions
TODO
TODO
<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>
- Basic Rules
- FilesIncludedIntoProject
- SameNameForAssemblyAndRootNamespace
- SuppressWarnings
- TargetFrameworkProfile
- TargetFrameworkVersion
- TreatWarningsAsErrors
- WarningLevel
- NuGet Rules
- NuGetAutomaticPackagesRestore
- NuGetPackagesUsage
- NuGetPackageVersions
- ReferenceNuGetPackagesOnly
- SameNuGetPackageVersions
- StyleCop Rules
- StyleCopEnabled
- TreatStyleCopWarningsAsErrors