File: System\Windows\Forms\Analyzers\Diagnostics\SharedDiagnosticDescriptors.cs
Web Access
Project: src\src\System.Windows.Forms.Analyzers\src\System.Windows.Forms.Analyzers.csproj (System.Windows.Forms.Analyzers)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Windows.Forms.Analyzers.Resources;
using Microsoft.CodeAnalysis;
 
namespace System.Windows.Forms.Analyzers.Diagnostics;
 
internal static partial class SharedDiagnosticDescriptors
{
    internal static readonly DiagnosticDescriptor s_cSharpMigrateHighDpiSettings =
        new(id: DiagnosticIDs.MigrateHighDpiSettings,
            title: new LocalizableResourceString(nameof(SR.WFO0003Title), SR.ResourceManager, typeof(SR)),
            messageFormat: new LocalizableResourceString(nameof(SR.WFO0003Message_CS), SR.ResourceManager, typeof(SR)),
            category: DiagnosticCategories.ApplicationConfiguration,
            defaultSeverity: DiagnosticSeverity.Warning,
            isEnabledByDefault: true);
 
    internal static readonly DiagnosticDescriptor s_visualBasicMigrateHighDpiSettings =
        new(id: DiagnosticIDs.MigrateHighDpiSettings,
            title: new LocalizableResourceString(nameof(SR.WFO0003Title), SR.ResourceManager, typeof(SR)),
            messageFormat: new LocalizableResourceString(nameof(SR.WFO0003Message_VB), SR.ResourceManager, typeof(SR)),
            category: DiagnosticCategories.ApplicationConfiguration,
            defaultSeverity: DiagnosticSeverity.Warning,
            isEnabledByDefault: true);
}