markdown 在visual studio中设置编译器警告级别

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在visual studio中设置编译器警告级别相关的知识,希望对你有一定的参考价值。

### 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)

以上是关于markdown 在visual studio中设置编译器警告级别的主要内容,如果未能解决你的问题,请参考以下文章

在 Visual Studio Code 中设置颤振

无需离开 Visual Studio 即可编写 Markdown

markdown Visual Studio代码设置

markdown Visual Studio Code设置中文

markdown Visual Studio键盘快捷键

markdown Visual Studio代码设置