我正在将 .Net 4.6.2 项目迁移到 Net Core 2。
HandleErrorAttribute
的等效方法是什么?在第二行以下收到错误。
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new CustomerAuthorize());
filters.Add(new HandleErrorAttribute());
}
错误:
The type or namespace name 'HandleErrorAttribute' could not be found (are you missing a using directive or an assembly reference?