提问人:David Thielen 提问时间:11/17/2023 更新时间:11/17/2023 访问量:31
在我的系统上编译正常,在 GitHub Action 中编译,现在失败
Compiles fine on my system, was compiling in GitHub Action, now fails
问:
以下代码已经编译了几个月。而现在,突然之间,它无法在 Git (GitHub Action) 上编译。它仍然在我的系统上编译良好。
<DisplayFlyweight Data="tagInfo.DataItem"
ButtonCssClass="@DisplayFlyweight.CloseButtonClass"
Click="@(new EventCallback(null, tagInfo.RemoveTagAction))"
SizeMode="SizeMode.Small" />
我评论掉了并签到了 - 然后它编译得很好。Click="@(new EventCallback(null, tagInfo.RemoveTagAction))"
错误是:
Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback' to 'System.MulticastDelegate?'
Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
Click 的声明是:
[Parameter]
public EventCallback<IItemFlyweight?> Click { get; set; }
RemoveTagAction(DexExpress 类)是:
public Action RemoveTagAction { get; internal set; }
我怎样才能再次编译?该代码在我的系统上编译并运行良好。
谢谢 - 戴夫
答: 暂无答案
评论