Fix diagnostic message in ComInterfaceGenerator (#88450)
authorJackson Schuster <36744439+jtschuster@users.noreply.github.com>
Thu, 6 Jul 2023 02:07:14 +0000 (19:07 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Jul 2023 02:07:14 +0000 (19:07 -0700)
Fixes #88448

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

index fb941b7..85506f6 100644 (file)
@@ -2,8 +2,6 @@
 // The .NET Foundation licenses this file to you under the MIT license.
 
 using System;
-using System.Collections.Generic;
-using System.Diagnostics;
 using Microsoft.CodeAnalysis;
 
 namespace Microsoft.Interop
@@ -157,7 +155,7 @@ namespace Microsoft.Interop
             new DiagnosticDescriptor(
                 Ids.TypeNotSupported,
                 GetResourceString(nameof(SR.TypeNotSupportedTitle)),
-                GetResourceString(nameof(SR.InvalidExceptionMarshallingConfigurationMessage)),
+                GetResourceString(nameof(SR.TypeNotSupportedMessageParameter)),
                 Category,
                 DiagnosticSeverity.Error,
                 isEnabledByDefault: true,