我正在使用Visual Studio中的默认.NET Core身份Web应用程序解决方案。我正在尝试将所有身份逻辑分离到其自己的项目中。我唯一的挂断电话似乎在这里:
namespace WebApp.Identity.Extensions
{
public static class UrlHelperExtensions
{
public static string EmailConfirmationLink(this IUrlHelper urlHelper, int userId, string code, string scheme)
{
return urlHelper.Action(
action: nameof(AccountController.ConfirmEmail),
controller: "Account",
values: new { userId, code },
protocol: scheme);
}
}
}
在另一个项目中引用The name 'AccountController' does not exist in the current context
时出现错误AccountController
。我不确定我缺少什么?