Skip to content

诊断参考

语言

English

以下 ID 以生成器仓库 DiagnosticDescriptors.cs 为准。R3SG 为权威标识。

错误

ID标题何时出现
R3SG0001类型必须为 partial[R3Command] 的声明类型须为 partial
R3SG1001不支持的命令方法签名不在 R3Command 矩阵
R3SG1002找不到 CanExecute 成员CanExecute 名称在 partial 类型上不存在
R3SG1003CanExecute 类型不匹配须为 R3.Observable<bool>IObservable<bool>
R3SG1004命令属性名重复两个方法会生成同名属性;请使用不同 CommandName

警告

ID标题何时出现
R3SG2001不支持的事件委托FromEvents 不支持的委托签名
R3SG2002FromEventHandlers 委托形态需要 EventHandlerEventHandler<T>(object, T) void 委托

编译器消息格式

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 (...).

类别:MvvmAIO.R3.SourceGenerators

基于 MIT 许可证发布。

基于 MIT 许可证发布。