Skip to main content

RCS9011: Specify ExportCodeFixProviderAttribute.Name

Properties

PropertyValue
Default SeverityHidden
Minimum language version-

Examples

Example #1

diagnostic.cs
[ExportCodeFixProvider(LanguageNames.CSharp)]
class FooCodeFixProvider : CodeFixProvider
{
}
fix.cs
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(FooCodeFixProvider))]
class FooCodeFixProvider : CodeFixProvider
{
}

Applies to