roslyn
roslyn copied to clipboard
Programmatically (from Microsoft.CodeAnalysis.Project) check for <CodeAnalysisRuleSet>
Version Used: 3.3.1
Steps to Reproduce:
- Programmatically load a project using workspace.OpenProjectAsync.
- Inspect the available properties available on the returned project.
We are attempting to write a tool that will do validation on our project files as they go into source control to ensure they have the appropriate style-related settings in place. This includes several checks, but there is one I haven't figured out how to do. I am attempting to locate a way to identify whether a project has a <CodeAnalysisRuleSet> specified for all defined build configurations.
Am I missing a way to do this?
Expected Behavior: A property or method is available to identify this.
Actual Behavior: No property or method found to retrieve this data.