RoslynAnalyzerRulesetPath
Stores the path to the Roslyn ruleset file.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEditor.Compilation
- Assembly: UnityEditor
public string RoslynAnalyzerRulesetPath { get; set; }
Remarks
You can define your own rules for how to handle the various warnings and errors that Roslyn analyzers raise. You must put these rules inside a file with the extension. Unity detects this file, and stores its path inside .
.ruleset.rulesetRoslynAnalyzerRulesetPathIn the root folder, you can store a rule set file named . The rules defined in apply to all predefined assemblies, as well as all assemblies that are built using files.
Default.rulesetDefault.ruleset.asmdefTo override the rules in for a predefined assembly, create a file in the root folder with the name . For example, the rules in apply to .
Default.ruleset.ruleset[PredefinedAssemblyName].rulesetAssembly-CSharp.rulesetAssembly-CSharp.dllOnly these files are permitted inside the root folder:
.rulesetDefault.rulesetAssembly-CSharp.rulesetAssembly-CSharp-firstpass.rulesetAssembly-CSharp-Editor.rulesetAssembly-CSharp-Editor-firstpass.ruleset
To override the rules in for an assembly built using an file, create a file in the same folder as its file. You can give it any name you like. The name of this rule set file does not necessarily have to match the name of the assembly.
Default.ruleset.asmdef.ruleset.asmdef