Skip to content

Commit 60ff03e

Browse files
authored
Merge pull request #999 from CommunityToolkit/dev/fix-diagnostic-message
Fix message for one of the WinRT diagnostics
2 parents c72bfca + 3e13fa1 commit 60ff03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ internal static class DiagnosticDescriptors
790790
public static readonly DiagnosticDescriptor WinRTGeneratedBindableCustomPropertyWithBaseObservablePropertyOnField = new(
791791
id: "MVVMTK0047",
792792
title: "Using [GeneratedBindableCustomProperty] is not compatible with [ObservableProperty] on fields",
793-
messageFormat: """The type {0} using [GeneratedBindableCustomProperty] is also using [RelayCommand] on its declared (or inherited) method {1}: combining the two generators is not supported, and a manually declared command property should be used instead (the [GeneratedBindableCustomProperty] generator cannot see the generated property that is produced by the MVVM Toolkit generator)""",
793+
messageFormat: """The type {0} using [GeneratedBindableCustomProperty] is also using [ObservableProperty] on its declared (or inherited) field {1}.{2}: combining the two generators is not supported, and partial properties should be used instead (the [GeneratedBindableCustomProperty] generator cannot see the generated property that is produced by the MVVM Toolkit generator)""",
794794
category: typeof(ObservablePropertyGenerator).FullName,
795795
defaultSeverity: DiagnosticSeverity.Warning,
796796
isEnabledByDefault: true,

0 commit comments

Comments
 (0)