Skip to content

Commit a733b1b

Browse files
authored
Merge pull request #1003 from CommunityToolkit/dev/tweak-diagnostics
Minor diagnostics tweaks
2 parents 9390867 + 046dc4c commit a733b1b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,7 @@ internal static class DiagnosticDescriptors
634634
category: typeof(ObservablePropertyGenerator).FullName,
635635
defaultSeverity: DiagnosticSeverity.Error,
636636
isEnabledByDefault: true,
637-
description: "All attributes targeting the generated property for a field annotated with [ObservableProperty] must be using valid expressions.",
638-
helpLinkUri: "https://aka.ms/mvvmtoolkit/errors/mvvmtk0037");
637+
description: "All attributes targeting the generated property for a field annotated with [ObservableProperty] must be using valid expressions.");
639638

640639
/// <summary>
641640
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a method with <c>[RelayCommand]</c> is using an invalid attribute targeting the field or property.
@@ -650,8 +649,7 @@ internal static class DiagnosticDescriptors
650649
category: typeof(RelayCommandGenerator).FullName,
651650
defaultSeverity: DiagnosticSeverity.Error,
652651
isEnabledByDefault: true,
653-
description: "All attributes targeting the generated field or property for a method annotated with [RelayCommand] must be using valid expressions.",
654-
helpLinkUri: "https://aka.ms/mvvmtoolkit/errors/mvvmtk0038");
652+
description: "All attributes targeting the generated field or property for a method annotated with [RelayCommand] must be using valid expressions.");
655653

656654
/// <summary>
657655
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a method with <c>[RelayCommand]</c> is async void.
@@ -858,7 +856,7 @@ internal static class DiagnosticDescriptors
858856
category: typeof(ObservablePropertyGenerator).FullName,
859857
defaultSeverity: DiagnosticSeverity.Info,
860858
isEnabledByDefault: true,
861-
description: "Project producing one or more 'MVVMTK0045' warnings due to [ObservableProperty] being used on fields, which is not AOT compatible in WinRT scenarios, should set 'LangVersion' to 'preview' to enable partial properties and the associated code fixer because (setting 'LangVersion=preview' is required to use [ObservableProperty] on partial properties and address these warnings).",
859+
description: "This project producing one or more 'MVVMTK0045' warnings due to [ObservableProperty] being used on fields, which is not AOT compatible in WinRT scenarios, should set 'LangVersion' to 'preview' to enable partial properties and the associated code fixer (setting 'LangVersion=preview' is required to use [ObservableProperty] on partial properties and address these warnings).",
862860
helpLinkUri: "https://aka.ms/mvvmtoolkit/errors/mvvmtk0051",
863861
customTags: WellKnownDiagnosticTags.CompilationEnd);
864862
}

0 commit comments

Comments
 (0)