![]() Press F4 or go to the little wrench icon so that the Properties window is open, then give your ruleset a name (Default Rule Set) and save the file (ctrl-S). ![]() Name it whatever you want to name it, I will call it leset, then save it.Īt this point you should be in a rule set editor, showing you a list of rules grouped by code analyzer id. Next, right click the solution in Solution Explorer and go to Add → New Item, go to the General category and select Code Analysis Rule Set. NET Framework console app) called Rulesets, which will create the standard Program.cs file and a solution for the project. Let's start with creating a new project (a. I am using VS2017 Professional for this post. With the built in code analysis, but also with the help of a plethora of extensions and NuGet packages, this can be a very powerful tool. ![]() You basically create a file where you declare which warnings from analyzers will be ignored, displayed as info, warning or error. Visual Studio has a very interesting feature called Rule Sets.
0 Comments
Leave a Reply. |