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
Copy file name to clipboardExpand all lines: Microsoft.Toolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.cs
@@ -201,7 +202,23 @@ internal static class DiagnosticDescriptors
201
202
category:typeof(ICommandGenerator).FullName,
202
203
defaultSeverity:DiagnosticSeverity.Error,
203
204
isEnabledByDefault:true,
204
-
description:$"Cannot apply [ICommand] to methods with a signature that doesn't match any of the existing relay command types.",
205
+
description:"Cannot apply [ICommand] to methods with a signature that doesn't match any of the existing relay command types.",
206
+
helpLinkUri:"https://aka.ms/mvvmtoolkit");
207
+
208
+
/// <summary>
209
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when an unsupported C# language version is being used.
210
+
/// <para>
211
+
/// 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 source generator features from the MVVM Toolkit require consuming projects to set the C# language version to at least C# 9.0",
218
+
category:typeof(CSharpParseOptions).FullName,
219
+
defaultSeverity:DiagnosticSeverity.Error,
220
+
isEnabledByDefault:true,
221
+
description:"The source generator features from the MVVM Toolkit require consuming projects to set the C# language version to at least C# 9.0. Make sure to add <LangVersion>9.0</LangVersion> (or above) to your .csproj file.",
0 commit comments