Skip to content

Commit

Permalink
[release/8.0] Fix diagnostic creation to ensure including the URI (#9…
Browse files Browse the repository at this point in the history
…1145)

* Fix diagnostic creation to ensure including the URI

* Fix the same issue with the Interop source gen

---------

Co-authored-by: Tarek Mahmoud Sayed <[email protected]>
  • Loading branch information
github-actions[bot] and tarekgh authored Aug 28, 2023
1 parent fe64d25 commit 9f49938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public static class DiagnosticDescriptors
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)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public class Ids

/// <inheritdoc cref="SR.HResultTypeWillBeTreatedAsStructMessage"/>
public static readonly DiagnosticDescriptor HResultTypeWillBeTreatedAsStruct =
new DiagnosticDescriptor(
DiagnosticDescriptorHelper.Create(
Ids.NotRecommendedGeneratedComInterfaceUsage,
GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructTitle)),
GetResourceString(nameof(SR.HResultTypeWillBeTreatedAsStructMessage)),
Expand Down

0 comments on commit 9f49938

Please sign in to comment.