### Set compiler warning level in visual studio
Can set level 1 to 4 here for compiler warning level from `right click project -> properties -> Build > "Errors and warnings" (section)`
### Exclude specific rule
If want apply a specific level but exclude someone in this level, there are 2 options
+ Set in Suppress Warnings in `"Errors and warnings" (section)` above, ex: 1591.
+ Use hash tag in code block to ignore specific rule as follwing
```
#pragma warning disable 1591
//some code here
#pragma warning restore 1591
```
### Reference
+ [C# Compiler Errors](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/) to reference all compile errors
+ [1591](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1591) for XML comment check
+ [Missing XML comment for publicly visible type or member](https://stackoverflow.com/questions/203863/missing-xml-comment-for-publicly-visible-type-or-member)