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: CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -379,4 +379,20 @@ internal static class DiagnosticDescriptors
379
379
isEnabledByDefault:true,
380
380
description:"Methods with multiple overloads cannot be annotated with [ICommand], as command methods must be unique within their containing type.",
381
381
helpLinkUri:"https://aka.ms/mvvmtoolkit");
382
+
383
+
/// <summary>
384
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a generated property created with <c>[ObservableProperty]</c> would cause conflicts with other generated members.
385
+
/// <para>
386
+
/// Format: <c>"The field {0}.{1} cannot be used to generate an observable property, as its name or type would cause conflicts with other generated members"</c>.
messageFormat:"The field {0}.{1} cannot be used to generate an observable property, as its name or type would cause conflicts with other generated members",
description:"The fields annotated with [ObservableProperty] cannot result in a property name or have a type that would cause conflicts with other generated members.",
0 commit comments