roslyn:get_attributes
Find C# symbols with specific attributes like Obsolete or Serializable across solution, project, or file scope using Roslyn compiler analysis.
Instructions
Find all symbols with specific attributes.
USAGE:
Find obsolete: get_attributes("Obsolete")
Find serializable: get_attributes("Serializable")
Scope to project: get_attributes("Obsolete", scope="project:MyProject")
Scope to file: get_attributes("Obsolete", scope="file:MyClass.cs")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attributeName | Yes | Attribute name (e.g., 'Obsolete', 'Serializable', 'JsonProperty') | |
| scope | No | 'solution' (default), 'project:Name', or 'file:path' | |
| maxResults | No | Maximum results (default: 100) |