mirror of
https://github.com/CommunityToolkit/dotnet.git
synced 2026-10-18 13:11:13 +08:00
Merge pull request #999 from CommunityToolkit/dev/fix-diagnostic-message
Fix message for one of the WinRT diagnostics
This commit is contained in:
@@ -790,7 +790,7 @@ internal static class DiagnosticDescriptors
|
||||
public static readonly DiagnosticDescriptor WinRTGeneratedBindableCustomPropertyWithBaseObservablePropertyOnField = new(
|
||||
id: "MVVMTK0047",
|
||||
title: "Using [GeneratedBindableCustomProperty] is not compatible with [ObservableProperty] on fields",
|
||||
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)""",
|
||||
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)""",
|
||||
category: typeof(ObservablePropertyGenerator).FullName,
|
||||
defaultSeverity: DiagnosticSeverity.Warning,
|
||||
isEnabledByDefault: true,
|
||||
|
||||
Reference in New Issue
Block a user