roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Programmatically (from Microsoft.CodeAnalysis.Project) check for <CodeAnalysisRuleSet>

Open cabadam opened this issue 5 years ago • 7 comments

Version Used: 3.3.1

Steps to Reproduce:

  1. Programmatically load a project using workspace.OpenProjectAsync.
  2. 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.

cabadam avatar Oct 01 '19 15:10 cabadam