You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title:"No valid ICommand.CanExecute member match",
184
184
messageFormat:"The CanExecute name must refer to a compatible member, but no valid members were found for \"{0}\" in type {1}",
@@ -363,4 +363,20 @@ internal static class DiagnosticDescriptors
363
363
isEnabledByDefault:true,
364
364
description:"Fields annotated with [AlsoBroadcastChange] must be contained in a type that inherits from ObservableRecipient or that is annotated with [ObservableRecipient] (including base types).",
365
365
helpLinkUri:"https://aka.ms/mvvmtoolkit");
366
+
367
+
/// <summary>
368
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a specified <c>[ICommand]</c> method has any overloads.
369
+
/// <para>
370
+
/// Format: <c>"The CanExecute name must refer to a single member, but "{0}" has multiple matches in type {1}"</c>.
title:"Multiple overloads for method annotated with ICommand",
376
+
messageFormat:"The method {0}.{1} cannot be annotated with [ICommand], has it has multiple overloads (command methods must be unique within their containing type)",
377
+
category:typeof(ICommandGenerator).FullName,
378
+
defaultSeverity:DiagnosticSeverity.Error,
379
+
isEnabledByDefault:true,
380
+
description:"Methods with multiple overloads cannot be annotated with [ICommand], as command methods must be unique within their containing type.",
0 commit comments