Skip to content

Diagnostics reference

Languages

简体中文

Compiler messages below are defined in DiagnosticDescriptors.cs in the generator repository. R3SG IDs are authoritative; this table is for navigation.

Errors

IDTitleWhen
R3SG0001Containing type must be partialThe type must be declared partial for [R3Command] source generation
R3SG1001Unsupported command method signatureMethod signature is not in the R3Command matrix
R3SG1002CanExecute member not foundCanExecute name does not exist on the partial type
R3SG1003CanExecute member type mismatchCanExecute must be R3.Observable<bool> or IObservable<bool>
R3SG1004Duplicate command property nameTwo methods would emit the same command property; use distinct CommandName

Warnings

IDTitleWhen
R3SG2001Unsupported event delegateEvent delegate is not supported for observable generation (FromEvents)
R3SG2002FromEventHandlers delegate shapeEvent is unsupported for FromEventHandlers (needs EventHandler, EventHandler<T>, or legacy (object, T) void delegate)

Message formats (compiler)

IDmessageFormat
R3SG0001The type '{0}' must be declared partial for source generation.
R3SG1001The method '{0}' signature is not supported by [R3Command].
R3SG1002The CanExecute member '{0}' was not found on type '{1}' for method '{2}'.
R3SG1003The CanExecute member '{0}' on type '{1}' must be R3.Observable<bool> or System.IObservable<bool>, but has type '{2}'.
R3SG1004The command property '{0}' would be generated for both '{1}' and '{2}' on type '{3}'. Use distinct CommandName values.
R3SG2001The event '{0}' has an unsupported delegate signature for observable generation.
R3SG2002The event '{0}' is unsupported for FromEventHandlers (needs System.EventHandler, System.EventHandler<T>, or void delegate with (object, T) parameters).

Category: MvvmAIO.R3.SourceGenerators

Released under the MIT License.

Released under the MIT License.