Skip to content

Commit 12ddcec

Browse files
authored
Fix diagnostic creation to ensure including the URI (#91123)
1 parent a8a8a13 commit 12ddcec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/DiagnosticDescriptors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public static class DiagnosticDescriptors
201201
DiagnosticSeverity.Warning,
202202
isEnabledByDefault: true);
203203

204-
public static DiagnosticDescriptor LoggingUnsupportedLanguageVersion { get; } = new DiagnosticDescriptor(
204+
public static DiagnosticDescriptor LoggingUnsupportedLanguageVersion { get; } = DiagnosticDescriptorHelper.Create(
205205
id: "SYSLIB1026",
206206
title: new LocalizableResourceString(nameof(SR.LoggingUnsupportedLanguageVersionTitle), SR.ResourceManager, typeof(FxResources.Microsoft.Extensions.Logging.Generators.SR)),
207207
messageFormat: new LocalizableResourceString(nameof(SR.LoggingUnsupportedLanguageVersionMessageFormat), SR.ResourceManager, typeof(FxResources.Microsoft.Extensions.Logging.Generators.SR)),

src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/GeneratorDiagnostics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public class Ids
477477

478478
/// <inheritdoc cref="SR.HResultTypeWillBeTreatedAsStructMessage"/>
479479
public static readonly DiagnosticDescriptor HResultTypeWillBeTreatedAsStruct =
480-
new DiagnosticDescriptor(
480+
DiagnosticDescriptorHelper.Create(
481481
Ids.NotRecommendedGeneratedComInterfaceUsage,
482482
GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructTitle)),
483483
GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructMessage)),

0 commit comments

Comments
 (0)