DiagnosticSeverity.Warning,
isEnabledByDefault: true);
- public static DiagnosticDescriptor LoggingUnsupportedLanguageVersion { get; } = new DiagnosticDescriptor(
+ public static DiagnosticDescriptor LoggingUnsupportedLanguageVersion { get; } = DiagnosticDescriptorHelper.Create(
id: "SYSLIB1026",
title: new LocalizableResourceString(nameof(SR.LoggingUnsupportedLanguageVersionTitle), SR.ResourceManager, typeof(FxResources.Microsoft.Extensions.Logging.Generators.SR)),
messageFormat: new LocalizableResourceString(nameof(SR.LoggingUnsupportedLanguageVersionMessageFormat), SR.ResourceManager, typeof(FxResources.Microsoft.Extensions.Logging.Generators.SR)),
/// <inheritdoc cref="SR.HResultTypeWillBeTreatedAsStructMessage"/>
public static readonly DiagnosticDescriptor HResultTypeWillBeTreatedAsStruct =
- new DiagnosticDescriptor(
+ DiagnosticDescriptorHelper.Create(
Ids.NotRecommendedGeneratedComInterfaceUsage,
GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructTitle)),
GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructMessage)),