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
messageFormat:$"The field {{0}}.{{1}} cannot be used to generate an observable property, as it has {{2}} validation attribute(s) but is declared in a type that doesn't inherit from ObservableValidator",
154
+
messageFormat:"The field {0}.{1} cannot be used to generate an observable property, as it has {2} validation attribute(s) but is declared in a type that doesn't inherit from ObservableValidator",
@@ -172,5 +173,37 @@ internal static class DiagnosticDescriptors
172
173
isEnabledByDefault:true,
173
174
description:$"The {nameof(ObservablePropertyGenerator)} generator encountered an error while processing a type. Please report this issue at https://aka.ms/mvvmtoolkit.",
174
175
helpLinkUri:"https://aka.ms/mvvmtoolkit");
176
+
177
+
/// <summary>
178
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when <see cref="ICommandGenerator"/> failed to run on a given type.
179
+
/// <para>
180
+
/// Format: <c>"The generator ICommandGenerator failed to execute on type {0}"</c>.
title:$"Internal error for {nameof(ICommandGenerator)}",
186
+
messageFormat:$"The generator {nameof(ICommandGenerator)} failed to execute on type {{0}}",
187
+
category:typeof(ICommandGenerator).FullName,
188
+
defaultSeverity:DiagnosticSeverity.Error,
189
+
isEnabledByDefault:true,
190
+
description:$"The {nameof(ICommandGenerator)} generator encountered an error while processing a type. Please report this issue at https://aka.ms/mvvmtoolkit.",
191
+
helpLinkUri:"https://aka.ms/mvvmtoolkit");
192
+
193
+
/// <summary>
194
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when an annotated method to generate a command for has an invalid signature.
195
+
/// <para>
196
+
/// Format: <c>"The method {0}.{1} cannot be used to generate a command property, as its signature isn't compatible with any of the existing relay command types"</c>.
messageFormat:"The method {0}.{1} cannot be used to generate a command property, as its signature isn't compatible with any of the existing relay command types",
203
+
category:typeof(ICommandGenerator).FullName,
204
+
defaultSeverity:DiagnosticSeverity.Error,
205
+
isEnabledByDefault:true,
206
+
description:$"Cannot apply [{nameof(ICommandAttribute)}] to methods with a signature that doesn't match any of the existing relay command types.",
0 commit comments